Fix clippy::semicolon_if_nothing_returned
This commit is contained in:
parent
9991052ce5
commit
34f07b6027
46 changed files with 108 additions and 108 deletions
|
|
@ -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`].
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
|
|
@ -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) {
|
||||
|
|
|
|||
|
|
@ -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,
|
||||
})
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue