From f8cf07d0400375ae1dbd36a8bccb447a9800daa6 Mon Sep 17 00:00:00 2001 From: hnoerenberg Date: Fri, 27 Nov 2026 15:50:22 +0100 Subject: [PATCH] fix(color): drop a needless borrow at the copy path's fallback clippy::needless_borrow on untagged_profile(copies): copies is already a reference, so taking a reference to it only asks the compiler to deref it again. --- crates/engine-core/src/cmd/layer_copy_cmds.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/engine-core/src/cmd/layer_copy_cmds.rs b/crates/engine-core/src/cmd/layer_copy_cmds.rs index e1c9883270b..d12548a8a5e 100644 --- a/crates/engine-core/src/cmd/layer_copy_cmds.rs +++ b/crates/engine-core/src/cmd/layer_copy_cmds.rs @@ -115,7 +115,7 @@ pub(crate) fn adapt_copies(s: &Session, copies: &mut Document, dest: &Document) // Both sides are read as the session reads them: an untagged document, source or // destination, is taken in its working space (#14224), so the copies keep their look on // the destination's canvas instead of landing as raw numbers. - let untagged = s.color().untagged_profile(&copies); + let untagged = s.color().untagged_profile(copies); let profile = s.color().document_profile(dest); crate::color_cmds::convert_document_from(copies, &untagged, &profile, s.color().settings.intent(), s.color().settings.bpc)?; }