Improve formatting of SignedPods: show keys as strings (#95)

* Improve formatting of SignedPods: show keys as strings

* Cargo fmt
This commit is contained in:
tideofwords 2025-02-27 10:23:23 -08:00 committed by GitHub
parent 423605f867
commit a2bcb501e8
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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(())
}