style(clippy): small clippy change

This commit is contained in:
Matthew Esposito 2024-11-19 11:40:17 -05:00
parent f8a9ad363d
commit 96e40e8887

View File

@ -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}"))
}
}