Fix clippy::semicolon_if_nothing_returned

This commit is contained in:
Héctor Ramón Jiménez 2023-09-20 04:11:52 +02:00
parent 9991052ce5
commit 34f07b6027
No known key found for this signature in database
GPG key ID: 7CC46565708259A7
46 changed files with 108 additions and 108 deletions

View file

@ -174,7 +174,7 @@ impl Builder {
/// the starting point.
#[inline]
pub fn close(&mut self) {
self.raw.close()
self.raw.close();
}
/// Builds the [`Path`] of this [`Builder`].

View file

@ -88,7 +88,7 @@ impl Linear {
stops: impl IntoIterator<Item = ColorStop>,
) -> Self {
for stop in stops {
self = self.add_stop(stop.offset, stop.color)
self = self.add_stop(stop.offset, stop.color);
}
self

View file

@ -79,7 +79,7 @@ impl Operation {
use image::imageops;
if self.contains(Self::FLIP_DIAGONALLY) {
imageops::flip_vertical_in_place(&mut image)
imageops::flip_vertical_in_place(&mut image);
}
if self.contains(Self::ROTATE_180) {

View file

@ -237,7 +237,7 @@ where
}
fn draw(&mut self, handle: image::Handle, bounds: Rectangle) {
self.primitives.push(Primitive::Image { handle, bounds })
self.primitives.push(Primitive::Image { handle, bounds });
}
}
@ -259,6 +259,6 @@ where
handle,
color,
bounds,
})
});
}
}