Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
iammadab committed Jul 21, 2023
1 parent cc1b577 commit e04fafd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion storage/src/rocksdb_storage/storage.rs
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,9 @@ impl RocksDbStorage {
let mut iter = self.db.raw_iterator_cf(&cf_handle);
iter.seek_to_first();
while iter.valid() {
self.db.delete(iter.key().expect("should have key"));
self.db
.delete(iter.key().expect("should have key"))
.map_err(|e| StorageError(e.to_string()))?;
iter.next()
}
Ok(())
Expand Down

0 comments on commit e04fafd

Please sign in to comment.