diff options
Diffstat (limited to 'src/table/merkle.rs')
-rw-r--r-- | src/table/merkle.rs | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/src/table/merkle.rs b/src/table/merkle.rs index 48d2c5dd..c6653a64 100644 --- a/src/table/merkle.rs +++ b/src/table/merkle.rs @@ -110,13 +110,7 @@ where } fn updater_loop_iter(&self) -> Result<bool, Error> { - // TODO undo this iter hack - let mut iter = self.data.merkle_todo.iter()?; - if let Some(x) = iter.next() { - let (key, valhash) = x?; - let key = key.to_vec(); - let valhash = valhash.to_vec(); - drop(iter); + if let Some((key, valhash)) = self.data.merkle_todo.first()? { self.update_item(&key, &valhash)?; Ok(true) } else { |