summaryrefslogtreecommitdiffstats
path: root/widget/src/scrollable.rs
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 /widget/src/scrollable.rs
parent9991052ce5617abf0f270bc9a74627ab6d45b35d (diff)
downloadiced-34f07b60273d6cfe13834af54cd0e24d34569387.tar.gz
iced-34f07b60273d6cfe13834af54cd0e24d34569387.tar.bz2
iced-34f07b60273d6cfe13834af54cd0e24d34569387.zip
Fix `clippy::semicolon_if_nothing_returned`
Diffstat (limited to 'widget/src/scrollable.rs')
-rw-r--r--widget/src/scrollable.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/widget/src/scrollable.rs b/widget/src/scrollable.rs
index f92e6223..6f1e68fc 100644
--- a/widget/src/scrollable.rs
+++ b/widget/src/scrollable.rs
@@ -217,7 +217,7 @@ where
}
fn diff(&self, tree: &mut Tree) {
- tree.diff_children(std::slice::from_ref(&self.content))
+ tree.diff_children(std::slice::from_ref(&self.content));
}
fn width(&self) -> Length {
@@ -348,9 +348,9 @@ where
layout,
cursor,
viewport,
- )
+ );
},
- )
+ );
}
fn mouse_interaction(
@@ -1069,7 +1069,7 @@ impl operation::Scrollable for State {
}
fn scroll_to(&mut self, offset: AbsoluteOffset) {
- State::scroll_to(self, offset)
+ State::scroll_to(self, offset);
}
}
@@ -1203,7 +1203,7 @@ impl State {
(self.offset_y.absolute(bounds.height, content_bounds.height)
- delta.y)
.clamp(0.0, content_bounds.height - bounds.height),
- )
+ );
}
if bounds.width < content_bounds.width {