diff options
| author | Marek Barvíř <barvirm@gmail.com> | 2023-04-01 15:53:13 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-04-01 15:53:13 +0200 |
| commit | 5e5b1bba510179a1c50f34b3a239f1913e7be78d (patch) | |
| tree | 520058fd817fcd4b5f3e523c5f665fed6916b098 /library/src/visualize | |
| parent | 9eb6174b22fa4824869fc5e923b96847c2968462 (diff) | |
Needless clone, borrows, casts and lifetimes (#504)
Diffstat (limited to 'library/src/visualize')
| -rw-r--r-- | library/src/visualize/polygon.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/src/visualize/polygon.rs b/library/src/visualize/polygon.rs index 07725b72..642349fa 100644 --- a/library/src/visualize/polygon.rs +++ b/library/src/visualize/polygon.rs @@ -62,7 +62,7 @@ impl Layout for PolygonElem { let mut frame = Frame::new(target); // Only create a path if there are more than zero points. - if points.len() > 0 { + if !points.is_empty() { let fill = self.fill(styles); let stroke = self.stroke(styles).map(PartialStroke::unwrap_or_default); |
