summaryrefslogtreecommitdiffstats
path: root/tiny_skia
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-08-26 01:31:11 +0200
committerLibravatar Héctor Ramón Jiménez <hector0193@gmail.com>2023-08-26 01:31:11 +0200
commit36120d5685048f761caf4b6a12a4f3a6007f9363 (patch)
tree80dc4734583925584efb11da246b90922c67cddf /tiny_skia
parent96b435488ac911d8f3d7b5e75d1f690bf03a93e6 (diff)
downloadiced-36120d5685048f761caf4b6a12a4f3a6007f9363.tar.gz
iced-36120d5685048f761caf4b6a12a4f3a6007f9363.tar.bz2
iced-36120d5685048f761caf4b6a12a4f3a6007f9363.zip
Run `cargo fmt` with Rust 1.72
Diffstat (limited to 'tiny_skia')
-rw-r--r--tiny_skia/src/geometry.rs12
1 files changed, 9 insertions, 3 deletions
diff --git a/tiny_skia/src/geometry.rs b/tiny_skia/src/geometry.rs
index 9bd47556..0fae7364 100644
--- a/tiny_skia/src/geometry.rs
+++ b/tiny_skia/src/geometry.rs
@@ -39,7 +39,9 @@ impl Frame {
}
pub fn fill(&mut self, path: &Path, fill: impl Into<Fill>) {
- let Some(path) = convert_path(path) else { return };
+ let Some(path) = convert_path(path) else {
+ return;
+ };
let fill = fill.into();
self.primitives
@@ -57,7 +59,9 @@ impl Frame {
size: Size,
fill: impl Into<Fill>,
) {
- let Some(path) = convert_path(&Path::rectangle(top_left, size)) else { return };
+ let Some(path) = convert_path(&Path::rectangle(top_left, size)) else {
+ return;
+ };
let fill = fill.into();
self.primitives
@@ -73,7 +77,9 @@ impl Frame {
}
pub fn stroke<'a>(&mut self, path: &Path, stroke: impl Into<Stroke<'a>>) {
- let Some(path) = convert_path(path) else { return };
+ let Some(path) = convert_path(path) else {
+ return;
+ };
let stroke = stroke.into();
let skia_stroke = into_stroke(&stroke);