Skip to content

Commit

Permalink
Improve formatting of SignedPods: show keys as strings (#95)
Browse files Browse the repository at this point in the history
* Improve formatting of SignedPods: show keys as strings

* Cargo fmt
  • Loading branch information
tideofwords authored Feb 27, 2025
1 parent 423605f commit a2bcb50
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/frontend/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -151,7 +151,13 @@ impl fmt::Display for SignedPod {
// deterministic based on the keys values not on the order of the keys when added into the
// tree.
for (k, v) in self.kvs().iter().sorted_by_key(|kv| kv.0) {
writeln!(f, " - {}: {}", k, v)?;
writeln!(
f,
" - {} = {}: {}",
k,
*self.key_string_map.get(&k).unwrap_or(&"--".to_string()),
v
)?;
}
Ok(())
}
Expand Down

0 comments on commit a2bcb50

Please sign in to comment.