summaryrefslogtreecommitdiffstats
path: root/examples
diff options
context:
space:
mode:
authorLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2023-09-20 04:11:52 +0200
committerLibravatar Héctor Ramón Jiménez <hector@hecrj.dev>2023-09-20 04:11:52 +0200
commit34f07b60273d6cfe13834af54cd0e24d34569387 (patch)
tree8d53809866fd0f8a6ca754dd26fb890c6249b788 /examples
parent9991052ce5617abf0f270bc9a74627ab6d45b35d (diff)
downloadiced-34f07b60273d6cfe13834af54cd0e24d34569387.tar.gz
iced-34f07b60273d6cfe13834af54cd0e24d34569387.tar.bz2
iced-34f07b60273d6cfe13834af54cd0e24d34569387.zip
Fix `clippy::semicolon_if_nothing_returned`
Diffstat (limited to 'examples')
-rw-r--r--examples/bezier_tool/src/main.rs2
-rw-r--r--examples/clock/src/main.rs2
-rw-r--r--examples/toast/src/main.rs2
-rw-r--r--examples/tooltip/src/main.rs2
-rw-r--r--examples/tour/src/main.rs2
5 files changed, 5 insertions, 5 deletions
diff --git a/examples/bezier_tool/src/main.rs b/examples/bezier_tool/src/main.rs
index 310be28f..9e4bc49c 100644
--- a/examples/bezier_tool/src/main.rs
+++ b/examples/bezier_tool/src/main.rs
@@ -81,7 +81,7 @@ mod bezier {
}
pub fn request_redraw(&mut self) {
- self.cache.clear()
+ self.cache.clear();
}
}
diff --git a/examples/clock/src/main.rs b/examples/clock/src/main.rs
index fae77bc0..eec70dde 100644
--- a/examples/clock/src/main.rs
+++ b/examples/clock/src/main.rs
@@ -141,7 +141,7 @@ impl<Message> canvas::Program<Message, Renderer> for Clock {
frame.with_save(|frame| {
frame.rotate(hand_rotation(self.now.second(), 60));
frame.stroke(&long_hand, thin_stroke());
- })
+ });
});
vec![clock]
diff --git a/examples/toast/src/main.rs b/examples/toast/src/main.rs
index 8570a38e..20c3dd42 100644
--- a/examples/toast/src/main.rs
+++ b/examples/toast/src/main.rs
@@ -639,7 +639,7 @@ mod toast {
child
.as_widget()
.operate(state, layout, renderer, operation);
- })
+ });
});
}
diff --git a/examples/tooltip/src/main.rs b/examples/tooltip/src/main.rs
index 35b862a8..a904cce0 100644
--- a/examples/tooltip/src/main.rs
+++ b/examples/tooltip/src/main.rs
@@ -40,7 +40,7 @@ impl Sandbox for Example {
Position::Right => Position::FollowCursor,
};
- self.position = position
+ self.position = position;
}
}
}
diff --git a/examples/tour/src/main.rs b/examples/tour/src/main.rs
index 952300bb..d46e40d1 100644
--- a/examples/tour/src/main.rs
+++ b/examples/tour/src/main.rs
@@ -285,7 +285,7 @@ impl<'a> Step {
is_showing_icon, ..
} = self
{
- *is_showing_icon = toggle
+ *is_showing_icon = toggle;
}
}
};