Skip to content

Commit 65b174c

Browse files
committed
[clippy] apply clippy fixes
1 parent 6cdb171 commit 65b174c

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "rasterize"
3-
version = "0.5.0"
3+
version = "0.5.1"
44
authors = ["Pavel Aslanov <asl.pavel@gmail.com>"]
55
description = "Simple and small 2D rendering library"
66
edition = "2021"

src/path.rs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ pub struct SubPath<'a> {
144144
closed: bool,
145145
}
146146

147-
impl<'a> fmt::Debug for SubPath<'a> {
147+
impl fmt::Debug for SubPath<'_> {
148148
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
149149
for segment in self.segments.iter() {
150150
writeln!(f, "{:?}", segment)?;
@@ -173,7 +173,7 @@ impl<'a> SubPath<'a> {
173173
}
174174

175175
pub fn segments(&self) -> &[Segment] {
176-
&self.segments
176+
self.segments
177177
}
178178

179179
/// First segment in the sub-path
@@ -647,7 +647,7 @@ impl<'a> IntoIterator for &'a Path {
647647
impl<'a> Extend<SubPath<'a>> for Path {
648648
fn extend<T: IntoIterator<Item = SubPath<'a>>>(&mut self, iter: T) {
649649
for subpath in iter {
650-
self.push(&subpath.segments, subpath.closed);
650+
self.push(subpath.segments, subpath.closed);
651651
}
652652
}
653653
}
@@ -669,8 +669,8 @@ where
669669
}
670670
}
671671

672-
fn stroke_close<'a>(
673-
subpath: SubPath<'a>,
672+
fn stroke_close(
673+
subpath: SubPath<'_>,
674674
segments: &mut Vec<Segment>,
675675
style: StrokeStyle,
676676
forward: bool,

0 commit comments

Comments
 (0)