diff --git a/lib-core/src/entry/fs.rs b/lib-core/src/entry/fs.rs index d854040..8f00de0 100644 --- a/lib-core/src/entry/fs.rs +++ b/lib-core/src/entry/fs.rs @@ -81,7 +81,7 @@ impl EntrySaverSpec for FSEntrySaver { struct RecursiveReadDir { dirs: Vec>, - cur: Option + cur: Option> } impl RecursiveReadDir { fn new(src_dir: Box) -> Self { @@ -96,7 +96,7 @@ impl Iterator for RecursiveReadDir { let p = self.dirs.pop()?; match fs::read_dir(p) { Ok(rd) => { - self.cur = Some(rd); + self.cur = Some(Box::new(rd)); self.cur.as_mut().unwrap() }, Err(e) => return Some(Err(e))