diff options
author | 2023-09-20 04:11:52 +0200 | |
---|---|---|
committer | 2023-09-20 04:11:52 +0200 | |
commit | 34f07b60273d6cfe13834af54cd0e24d34569387 (patch) | |
tree | 8d53809866fd0f8a6ca754dd26fb890c6249b788 /graphics | |
parent | 9991052ce5617abf0f270bc9a74627ab6d45b35d (diff) | |
download | iced-34f07b60273d6cfe13834af54cd0e24d34569387.tar.gz iced-34f07b60273d6cfe13834af54cd0e24d34569387.tar.bz2 iced-34f07b60273d6cfe13834af54cd0e24d34569387.zip |
Fix `clippy::semicolon_if_nothing_returned`
Diffstat (limited to 'graphics')
-rw-r--r-- | graphics/src/geometry/path/builder.rs | 2 | ||||
-rw-r--r-- | graphics/src/gradient.rs | 2 | ||||
-rw-r--r-- | graphics/src/image.rs | 2 | ||||
-rw-r--r-- | graphics/src/renderer.rs | 4 |
4 files changed, 5 insertions, 5 deletions
diff --git a/graphics/src/geometry/path/builder.rs b/graphics/src/geometry/path/builder.rs index 794dd3bc..b0959fbf 100644 --- a/graphics/src/geometry/path/builder.rs +++ b/graphics/src/geometry/path/builder.rs @@ -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`]. diff --git a/graphics/src/gradient.rs b/graphics/src/gradient.rs index 7460e12e..603f1b4a 100644 --- a/graphics/src/gradient.rs +++ b/graphics/src/gradient.rs @@ -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 diff --git a/graphics/src/image.rs b/graphics/src/image.rs index 6b43f4a8..d89caace 100644 --- a/graphics/src/image.rs +++ b/graphics/src/image.rs @@ -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) { diff --git a/graphics/src/renderer.rs b/graphics/src/renderer.rs index d4df29a5..a9d7895e 100644 --- a/graphics/src/renderer.rs +++ b/graphics/src/renderer.rs @@ -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, - }) + }); } } |