Skip to content

Commit

Permalink
Reduce fmt_map_as_colon_separated_pairs here
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelklishin committed Jan 6, 2025
1 parent 34c402c commit 5508e52
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/responses.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1174,11 +1174,7 @@ pub struct TagMap(pub Map<String, serde_json::Value>);

impl Display for TagMap {
fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
for (k, v) in &self.0 {
writeln!(f, "{}: {}", k, v)?;
}

Ok(())
fmt_map_as_colon_separated_pairs(f, &self.0)
}
}

Expand Down

0 comments on commit 5508e52

Please sign in to comment.