From b87c47941ba445a17c7327765444a25422c58121 Mon Sep 17 00:00:00 2001 From: Jay Kickliter Date: Thu, 2 Jan 2025 14:13:41 -0700 Subject: [PATCH 1/2] fix lint --- src/disktree/mod.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/disktree/mod.rs b/src/disktree/mod.rs index 65d0d4b..dfbc683 100644 --- a/src/disktree/mod.rs +++ b/src/disktree/mod.rs @@ -153,7 +153,7 @@ mod tests { // Assert neither hashmap nor disktree contain reserved cells. for cell in test_cells { - assert!(monaco_hashmap.get(&cell).is_none()); + assert!(!monaco_hashmap.contains_key(&cell)); assert!(!monaco_disktree.contains(cell).unwrap()); } From 0112a2cac2070f45406c220286770aca30a8bb36 Mon Sep 17 00:00:00 2001 From: Jay Kickliter Date: Thu, 2 Jan 2025 14:17:19 -0700 Subject: [PATCH 2/2] elide lifetime --- src/disktree/iter.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/disktree/iter.rs b/src/disktree/iter.rs index d66ccd5..91966e3 100644 --- a/src/disktree/iter.rs +++ b/src/disktree/iter.rs @@ -169,7 +169,7 @@ impl<'a> Iterator for Iter<'a> { } } -impl<'a> DtSeek for Iter<'a> { +impl DtSeek for Iter<'_> { fn pos(&mut self) -> std::io::Result { self.disktree_csr.pos() }