Cargo clippy --all-features

This commit is contained in:
Steve Cook
2023-03-01 22:33:56 -05:00
parent daa1d86358
commit c5460debe1
7 changed files with 56 additions and 47 deletions

View File

@@ -27,7 +27,7 @@ impl LuminanceSource for SVGLuminanceSource {
}
fn crop(&self, left: usize, top: usize, width: usize, height: usize) -> Result<Self> {
self.0.crop(left, top, width, height).map(|src| Self(src))
self.0.crop(left, top, width, height).map(Self)
}
fn is_rotate_supported(&self) -> bool {
@@ -39,11 +39,11 @@ impl LuminanceSource for SVGLuminanceSource {
}
fn rotate_counter_clockwise(&self) -> Result<Self> {
self.0.rotate_counter_clockwise().map(|src| Self(src))
self.0.rotate_counter_clockwise().map(Self)
}
fn rotate_counter_clockwise_45(&self) -> Result<Self> {
self.0.rotate_counter_clockwise_45().map(|src| Self(src))
self.0.rotate_counter_clockwise_45().map(Self)
}
}