summaryrefslogtreecommitdiffstats
path: root/graphics/src
diff options
context:
space:
mode:
Diffstat (limited to 'graphics/src')
-rw-r--r--graphics/src/geometry/path/builder.rs2
-rw-r--r--graphics/src/gradient.rs2
-rw-r--r--graphics/src/image.rs2
-rw-r--r--graphics/src/renderer.rs4
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,
- })
+ });
}
}