Skip to content

Commit

Permalink
fix: clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
threadexio committed Jan 3, 2025
1 parent affa1ae commit 5d04b91
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,10 @@ impl ArgMatchesExt for ArgMatches {
fn flag(&self, id: &str) -> Option<bool> {
match self.value_source(id).unwrap() {
ValueSource::DefaultValue => None,
_ => Some(self.get_one::<BooleanFlag>(id).unwrap().clone().into()),
_ => {
let x = *self.get_one::<BooleanFlag>(id).unwrap();
Some(x.into())
}
}
}
}
Expand Down

0 comments on commit 5d04b91

Please sign in to comment.