Skip to content

Commit

Permalink
Clear extra warning
Browse files Browse the repository at this point in the history
  • Loading branch information
DJMcNab committed Sep 10, 2024
1 parent b5ec26e commit b600e4f
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/stroke.rs
Original file line number Diff line number Diff line change
Expand Up @@ -106,11 +106,13 @@ pub enum StrokeStyle {
}

impl StrokeStyle {
#[allow(dead_code)]
fn inner(self) -> StrokeEdgeExpansion {
// We know the error is impossible as the byte values above are
// only combinations of the StrokeEdgeExpansion variants
((self as u8) & 0x0F).try_into().unwrap()
}
#[allow(dead_code)]
fn outer(self) -> StrokeEdgeExpansion {
(self as u8 >> 4).try_into().unwrap()
}
Expand Down

0 comments on commit b600e4f

Please sign in to comment.