Skip to content

Commit

Permalink
Consistently put trait bounds into where-clause
Browse files Browse the repository at this point in the history
  • Loading branch information
dtolnay committed Aug 5, 2024
1 parent 1224744 commit 1fd8d92
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/configure.rs
Original file line number Diff line number Diff line change
Expand Up @@ -359,9 +359,9 @@ macro_rules! impl_serializer {
)
}

fn collect_str<T: ?Sized>(self, value: &T) -> Result<Self::Ok, Self::Error>
fn collect_str<T>(self, value: &T) -> Result<Self::Ok, Self::Error>
where
T: Display,
T: ?Sized + Display,
{
self.0.collect_str(value)
}
Expand Down

0 comments on commit 1fd8d92

Please sign in to comment.