fix some pedantic clippy lints that make sense
- clippy::redundant-closure-for-method-calls - clippy::explicit-iter-loop
This commit is contained in:
parent
449cdc0157
commit
e25bc47f8f
20 changed files with 59 additions and 66 deletions
|
|
@ -294,7 +294,7 @@ impl std::str::FromStr for Program {
|
|||
type Err = anyhow::Error;
|
||||
|
||||
fn from_str(s: &str) -> Result<Self> {
|
||||
let instructions = s.lines().map(|line| line.parse()).collect::<Result<_>>()?;
|
||||
let instructions = s.lines().map(str::parse).collect::<Result<_>>()?;
|
||||
|
||||
Ok(Program {
|
||||
instructions,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue