Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
amrbashir committed Oct 28, 2024
1 parent ab99546 commit e285c53
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/tauri-macros/src/command/wrapper.rs
Original file line number Diff line number Diff line change
Expand Up @@ -480,7 +480,7 @@ fn rustc_version() -> (u32, u32) {
.flat_map(|p| p.parse::<u32>().ok())
.collect::<Vec<_>>();
version
.get(0)
.first()
.and_then(|major| version.get(1).map(|minor| (*major, *minor)))
})
.unwrap_or((1, 0))
Expand Down

0 comments on commit e285c53

Please sign in to comment.