diff options
| author | Laurenz <laurmaedje@gmail.com> | 2023-06-06 22:06:24 +0200 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2023-06-06 22:25:55 +0200 |
| commit | 6ea98dd940361ad9232ec86f33b29c6318009c20 (patch) | |
| tree | a350e0380c7403969ced255e4e55c04d83bcaff8 /src/geom/rounded.rs | |
| parent | fd417da04f7ca4b995de7f6510abafd3e9c31307 (diff) | |
Small refactorings
Diffstat (limited to 'src/geom/rounded.rs')
| -rw-r--r-- | src/geom/rounded.rs | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/geom/rounded.rs b/src/geom/rounded.rs index 24b52448..f1a7ea08 100644 --- a/src/geom/rounded.rs +++ b/src/geom/rounded.rs @@ -1,7 +1,5 @@ use super::*; -use std::mem; - /// Produce shapes that together make up a rounded rectangle. pub fn rounded_rect( size: Size, @@ -69,7 +67,7 @@ fn stroke_segments( ); if !continuous { - res.push((mem::take(&mut path), stroke.get_ref(side).clone())); + res.push((std::mem::take(&mut path), stroke.get_ref(side).clone())); } } |
