Skip to content

Commit

Permalink
Fix clippy::redundant_slicing lint
Browse files Browse the repository at this point in the history
  • Loading branch information
waywardmonkeys committed Oct 7, 2024
1 parent 78a1200 commit 8db7c9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/scale/outline.rs
Original file line number Diff line number Diff line change
Expand Up @@ -157,7 +157,7 @@ pub struct LayerMut<'a> {
impl<'a> LayerMut<'a> {
/// Returns the sequence of points for the layer.
pub fn points(&'a self) -> &'a [Point] {
&self.points[..]
self.points
}

/// Returns a mutable reference the sequence of points for the layer.
Expand Down

0 comments on commit 8db7c9a

Please sign in to comment.