Skip to content

Commit

Permalink
fixup!: update debug for rocks transaction
Browse files Browse the repository at this point in the history
Signed-off-by: bsbds <[email protected]>
  • Loading branch information
bsbds committed May 6, 2024
1 parent 8bfaaff commit 410b2de
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions crates/engine/src/rocksdb_engine/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -365,10 +365,14 @@ impl Inner {
}
}

#[allow(clippy::missing_fields_in_debug)] // `Transaction` does not implement `Debug`
impl std::fmt::Debug for Inner {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
f.debug_struct("RocksTransaction")
.field("db", &self.db)
.field("write_ops", &self.write_ops)
.field("engine_size", &self.engine_size)
.field("txn_size", &self.txn_size)
.finish()
}
}
Expand Down

0 comments on commit 410b2de

Please sign in to comment.