mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-25 08:11:41 +00:00
Fix redundant color-management closure borrow
This commit is contained in:
@@ -1003,7 +1003,7 @@ impl PasteProfile {
|
||||
if o.keys().any(|k| k != "rgb" && k != "cmyk") {
|
||||
return Err(refuse());
|
||||
}
|
||||
let model = |m: &str| o.get(m).map(&one).transpose();
|
||||
let model = |m: &str| o.get(m).map(one).transpose();
|
||||
Ok(Some(PasteChoice { rgb: model("rgb")?, cmyk: model("cmyk")? }))
|
||||
}
|
||||
Some(v) => {
|
||||
|
||||
Reference in New Issue
Block a user