aboutsummaryrefslogtreecommitdiff
path: root/src/brush.rs
diff options
context:
space:
mode:
authorAkshay <[email protected]>2021-04-06 10:24:54 +0100
committerAkshay <[email protected]>2021-04-06 10:24:54 +0100
commitc84c38544bc6e81f0b0482e4e82b6c95848c1a0c (patch)
tree3ae2f3387ba5ef56a7f7c3304dc029ae7845f175 /src/brush.rs
parent3f5b917c6ced370d940774b51ff89cec0d03c562 (diff)
apply clippy lints
Diffstat (limited to 'src/brush.rs')
-rw-r--r--src/brush.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/brush.rs b/src/brush.rs
index 8ff0cda..8557ba7 100644
--- a/src/brush.rs
+++ b/src/brush.rs
@@ -66,8 +66,8 @@ impl Brush {
66 66
67 pub fn size(&self) -> Option<u8> { 67 pub fn size(&self) -> Option<u8> {
68 match self { 68 match self {
69 Brush::Line(LineBrush { size, .. }) => Some(size.clone()), 69 Brush::Line(LineBrush { size, .. }) => Some(*size),
70 Brush::Circle(CircleBrush { size }) => Some(size.clone()), 70 Brush::Circle(CircleBrush { size }) => Some(*size),
71 _ => None, 71 _ => None,
72 } 72 }
73 } 73 }