Skip to content

Commit

Permalink
Fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Jake-Shadle committed Oct 25, 2023
1 parent 388f59f commit 8b25e5a
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/advisories/cfg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -412,10 +412,11 @@ mod test {
"PT1,5S",
];

let failures: String = FAILURES
.iter()
.map(|bad| format!("{:?}\n", dur_parse(bad)))
.collect();
let failures: String = FAILURES.iter().fold(String::new(), |mut acc, bad| {
use std::fmt::Write;
writeln!(&mut acc, "{:?}", dur_parse(bad)).unwrap();
acc
});

insta::assert_snapshot!(failures);
}
Expand Down

0 comments on commit 8b25e5a

Please sign in to comment.