Skip to content

Commit fe32488

Browse files
committed
fix: clippy error
Signed-off-by: addrian-77 <lunguadrian30@gmail.com>
1 parent 34c4dcc commit fe32488

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

tockloader-cli/src/main.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ fn using_serial(user_options: &ArgMatches) -> bool {
7575
user_options.get_flag("serial")
7676
|| user_options
7777
.get_one::<String>("protocol")
78-
.map_or(false, |p| p == "legacy")
78+
.is_some_and(|p| p == "legacy")
7979
}
8080

8181
fn get_known_board(user_options: &ArgMatches) -> Option<Box<dyn KnownBoard>> {

0 commit comments

Comments
 (0)