diff options
Diffstat (limited to '')
| -rw-r--r-- | iced_drop/src/widget/operation/drop.rs | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/iced_drop/src/widget/operation/drop.rs b/iced_drop/src/widget/operation/drop.rs index 12a2e30..a76181c 100644 --- a/iced_drop/src/widget/operation/drop.rs +++ b/iced_drop/src/widget/operation/drop.rs @@ -17,7 +17,7 @@ pub fn find_zones<F>( depth: Option<usize>, ) -> impl Operation<Vec<(Id, Rectangle)>> where - F: Fn(&Rectangle) -> bool + 'static, + F: Fn(&Rectangle) -> bool + Send + 'static, { struct FindDropZone<F> { filter: F, @@ -30,7 +30,7 @@ where impl<F> Operation<Vec<(Id, Rectangle)>> for FindDropZone<F> where - F: Fn(&Rectangle) -> bool + 'static, + F: Fn(&Rectangle) -> bool + Send + 'static, { fn container( &mut self, @@ -70,6 +70,7 @@ where _state: &mut dyn Scrollable, _id: Option<&Id>, bounds: Rectangle, + _content_bounds: Rectangle, translation: Vector, ) { if (self.filter)(&bounds) { |
