fix: DirBuilder::is_empty

This commit is contained in:
Joonas Koivunen 2020-08-06 17:47:43 +03:00
parent 39583a77f1
commit 7bbff65bdd
2 changed files with 2 additions and 2 deletions

View File

@ -123,7 +123,7 @@ impl BufferingTreeBuilder {
}
// our first level can be full given the options
let full = depth == 0 && !self.opts.wrap_with_directory && dir_builder.is_empty();
let full = depth == 0 && !self.opts.wrap_with_directory && !dir_builder.is_empty();
if last {
let mut next_id = Some(*counter);

View File

@ -69,7 +69,7 @@ impl DirBuilder {
}
pub fn is_empty(&self) -> bool {
self.len() != 0
self.len() == 0
}
pub fn set_metadata(&mut self, metadata: Metadata) {