mirror of
https://github.com/storytold/photocraft.git
synced 2026-12-03 06:31:42 +01:00
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.
This commit is contained in:
1 parent
d3c27e8162
commit
f8cf07d040
1 file changed
+1
-1
@@ -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)?;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user