Skip to content

Commit

Permalink
Fix clippy error in lib.rs (#1356)
Browse files Browse the repository at this point in the history
  • Loading branch information
NobodyXu authored Jan 10, 2025
1 parent b4acfc9 commit 5e17879
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3037,10 +3037,7 @@ impl Build {
}

let mut parts = tool.split_whitespace();
let maybe_wrapper = match parts.next() {
Some(s) => s,
None => return None,
};
let maybe_wrapper = parts.next()?;

let file_stem = Path::new(maybe_wrapper).file_stem()?.to_str()?;
if known_wrappers.contains(&file_stem) {
Expand Down

0 comments on commit 5e17879

Please sign in to comment.