Skip to content

Commit

Permalink
style(clippy): small clippy change
Browse files Browse the repository at this point in the history
  • Loading branch information
sigaloid committed Nov 19, 2024
1 parent f8a9ad3 commit 96e40e8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.rs
Original file line number Diff line number Diff line change
Expand Up @@ -507,7 +507,7 @@ impl std::ops::Deref for Awards {

impl std::fmt::Display for Awards {
fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result {
self.iter().fold(Ok(()), |result, award| result.and_then(|()| writeln!(f, "{award}")))
self.iter().try_fold((), |_, award| writeln!(f, "{award}"))
}
}

Expand Down

0 comments on commit 96e40e8

Please sign in to comment.