From 0b9919310e17e5c0a8ff403a4b354fe9982dec3e Mon Sep 17 00:00:00 2001 From: Yuval Shavit Date: Wed, 14 Aug 2024 18:01:35 -0400 Subject: [PATCH] rm a couple generic bounds They're not needed, and I just learned it's more idiomatic to leave them off. --- src/output.rs | 2 +- src/str_utils.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/output.rs b/src/output.rs index 9a63f6a..b39c84f 100644 --- a/src/output.rs +++ b/src/output.rs @@ -17,7 +17,7 @@ impl SimpleWrite for String { } } -pub struct Stream(pub W); +pub struct Stream(pub W); impl SimpleWrite for Stream { fn write_str(&mut self, text: &str) -> std::io::Result<()> { diff --git a/src/str_utils.rs b/src/str_utils.rs index 04f4213..31f37c6 100644 --- a/src/str_utils.rs +++ b/src/str_utils.rs @@ -72,7 +72,7 @@ impl> ToAlignment for Option { } } -pub struct CountingWriter<'a, W: SimpleWrite> { +pub struct CountingWriter<'a, W> { underlying: &'a mut W, count: usize, }