From eb9b7c7499fcebb625c42ffcc070f8614a0576b5 Mon Sep 17 00:00:00 2001 From: aiongg Date: Tue, 17 Nov 2026 17:43:17 +0000 Subject: [PATCH] EnvView::to_env takes the Copy view by value --- crates/ui-contract/src/runtime/env/view.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/ui-contract/src/runtime/env/view.rs b/crates/ui-contract/src/runtime/env/view.rs index 6ee611807..0f5c419b9 100644 --- a/crates/ui-contract/src/runtime/env/view.rs +++ b/crates/ui-contract/src/runtime/env/view.rs @@ -168,7 +168,7 @@ impl<'a> EnvView<'a> { } /// The env this view shows, owned: what the drag preview, which paints after the region it started in, paints with. - pub(crate) fn to_env(&self) -> super::Env { + pub(crate) fn to_env(self) -> super::Env { super::Env { scoped: Arc::new(self.scoped.clone()) } }