Skip to content

Commit 5e17879

Browse files
authored
Fix clippy error in lib.rs (#1356)
1 parent b4acfc9 commit 5e17879

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

src/lib.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3037,10 +3037,7 @@ impl Build {
30373037
}
30383038

30393039
let mut parts = tool.split_whitespace();
3040-
let maybe_wrapper = match parts.next() {
3041-
Some(s) => s,
3042-
None => return None,
3043-
};
3040+
let maybe_wrapper = parts.next()?;
30443041

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

0 commit comments

Comments
 (0)