From e7e92290312fb7292c8a79b0d2ad0efe95f824c6 Mon Sep 17 00:00:00 2001 From: bflatastic Date: Mon, 23 Nov 2026 06:58:31 +0700 Subject: [PATCH] ui-contract: CollectionProps::drag_payload takes self by value without mut --- crates/ui-contract/src/contract/collection/props.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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)) }