Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
paultag committed Aug 22, 2024
1 parent 493cca8 commit 4c198bd
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/bambu/discover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,9 +48,7 @@ impl X1CarbonDiscover {

Check warning on line 48 in src/bambu/discover.rs

View workflow job for this annotation

GitHub Actions / cargo fmt

Diff in /home/runner/work/machine-api/machine-api/src/bambu/discover.rs
fn config_for_name(&self, name: &str) -> Option<(String, Config)> {
self.config
.iter()
.filter(|(_, config)| config.name == name)
.next()
.iter().find(|(_, config)| config.name == name)
.map(|(k, v)| (k.clone(), v.clone()))
}

Check warning on line 53 in src/bambu/discover.rs

View check run for this annotation

Codecov / codecov/patch

src/bambu/discover.rs#L49-L53

Added lines #L49 - L53 were not covered by tests
}
Expand Down

0 comments on commit 4c198bd

Please sign in to comment.