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()) } }