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:
TrueDoctor
2022-01-07 04:15:08 +01:00
committed by Keavon Chambers
co-authored by Oliver Davies
parent 52e5501d18
commit 522626cd02
6 changed files with 38 additions and 63 deletions
+1 -7
View File
@@ -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;