mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-30 04:48:12 +08:00
Tidy up path handling in document_file (#464)
* Tidy up path handling in document_file + Improve #455 * Cargo Clippy lints * Rename to_vec to map_to_vec Co-authored-by: Oliver Davies <oliver@psyfer.io>
This commit is contained in:
co-authored by
Oliver Davies
parent
f4707f9b74
commit
c1c7192948
@@ -189,17 +189,11 @@ impl<'a> IntoIterator for &'a Layer {
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Debug)]
|
||||
#[derive(Debug, Default)]
|
||||
pub struct LayerIter<'a> {
|
||||
pub stack: Vec<&'a Layer>,
|
||||
}
|
||||
|
||||
impl Default for LayerIter<'_> {
|
||||
fn default() -> Self {
|
||||
Self { stack: vec![] }
|
||||
}
|
||||
}
|
||||
|
||||
impl<'a> Iterator for LayerIter<'a> {
|
||||
type Item = &'a Layer;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user