EnvView::to_env takes the Copy view by value

This commit is contained in:
aiongg
2026-11-17 17:43:17 +00:00
parent 4e28f37c16
commit eb9b7c7499
+1 -1
View File
@@ -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()) }
}