mirror of
https://github.com/GraphiteEditor/Graphite.git
synced 2026-09-24 01:58: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:
committed by
Keavon Chambers
co-authored by
Oliver Davies
parent
52e5501d18
commit
522626cd02
@@ -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