Skip to content

Commit

Permalink
rm a couple generic bounds
Browse files Browse the repository at this point in the history
They're not needed, and I just learned it's more idiomatic to leave them
off.
  • Loading branch information
yshavit authored Aug 14, 2024
1 parent fadeb56 commit 0b99193
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ impl SimpleWrite for String {
}
}

pub struct Stream<W: std::io::Write>(pub W);
pub struct Stream<W>(pub W);

impl<W: std::io::Write> SimpleWrite for Stream<W> {
fn write_str(&mut self, text: &str) -> std::io::Result<()> {
Expand Down
2 changes: 1 addition & 1 deletion src/str_utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ impl<A: Borrow<AlignKind>> ToAlignment for Option<A> {
}
}

pub struct CountingWriter<'a, W: SimpleWrite> {
pub struct CountingWriter<'a, W> {
underlying: &'a mut W,
count: usize,
}
Expand Down

0 comments on commit 0b99193

Please sign in to comment.