Skip to content

Commit

Permalink
refactor(format): more compact and efficient formatting
Browse files Browse the repository at this point in the history
Use debug set instead of nested debug struct for links.
Rename DataFormatter to Format.
And trait Method to get verbosity.
Split more trait methods.
Simplify streaming and serial formatting.
  • Loading branch information
SebastianSpeitel committed Feb 15, 2024
1 parent e2fb4c7 commit b16969d
Show file tree
Hide file tree
Showing 2 changed files with 141 additions and 243 deletions.
2 changes: 1 addition & 1 deletion src/data/ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ pub trait DataExt: Data {
#[allow(unused_variables)]
#[inline]
#[must_use]
fn format<F: format::DataFormatter>(&self) -> format::FormattableData<F, Self> {
fn format<F: format::Format>(&self) -> format::FormattableData<F, Self> {
self.into()
}
}
Expand Down
Loading

0 comments on commit b16969d

Please sign in to comment.