Skip to content

Commit

Permalink
fix: Tree::is_empty
Browse files Browse the repository at this point in the history
  • Loading branch information
marvin-j97 committed Dec 3, 2023
1 parent ba2e509 commit 039afce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tree.rs
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ impl Tree {
///
/// - Will return `Err` if an IO error occurs
pub fn is_empty(&self) -> crate::Result<bool> {
self.first_key_value().map(|x| x.is_none())
self.first().map(|x| x.is_none())
}

/// Creates a new tree in a folder.
Expand Down

0 comments on commit 039afce

Please sign in to comment.