mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-30 07:38:12 +08:00
Resolved clippy issue resulting from merging master
This commit is contained in:
@@ -171,7 +171,7 @@ impl Document {
|
|||||||
for id in path {
|
for id in path {
|
||||||
let pos = root.layer_ids.iter().position(|x| *x == *id).ok_or_else(|| DocumentError::LayerNotFound(path.into()))?;
|
let pos = root.layer_ids.iter().position(|x| *x == *id).ok_or_else(|| DocumentError::LayerNotFound(path.into()))?;
|
||||||
indices.push(pos);
|
indices.push(pos);
|
||||||
root = root.folder(*id).ok_or(DocumentError::LayerNotFound(path.into()))?;
|
root = root.folder(*id).ok_or_else(|| DocumentError::LayerNotFound(path.into()))?;
|
||||||
}
|
}
|
||||||
|
|
||||||
indices.push(root.layer_ids.iter().position(|x| *x == layer_id).ok_or_else(|| DocumentError::LayerNotFound(path.into()))?);
|
indices.push(root.layer_ids.iter().position(|x| *x == layer_id).ok_or_else(|| DocumentError::LayerNotFound(path.into()))?);
|
||||||
|
|||||||
Reference in New Issue
Block a user