diff --git a/crates/ui-contract/src/contract/collection/props.rs b/crates/ui-contract/src/contract/collection/props.rs index 06e16a201..46e11297f 100644 --- a/crates/ui-contract/src/contract/collection/props.rs +++ b/crates/ui-contract/src/contract/collection/props.rs @@ -369,7 +369,7 @@ impl CollectionProps { /// A row drag carries `map` of it, for the drop targets of type `P`; a row the map gives `None` for does not drag /// unless a reorder rule is set. The drag stays one session with one ghost. #[must_use] - pub fn drag_payload(mut self, map: impl Fn(&ListDrag) -> Option

+ Send + Sync + 'static) -> Self { + pub fn drag_payload(self, map: impl Fn(&ListDrag) -> Option

+ Send + Sync + 'static) -> Self { self.carry(DragPayload::new(map)) }