Skip to content

Commit 2ecb82d

Browse files
committed
clippy
1 parent ede8886 commit 2ecb82d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ impl Build {
133133
};
134134

135135
let compiler_path =
136-
which::which(compiler_path).expect(&format!("cannot find {compiler_path}"));
136+
which::which(compiler_path).unwrap_or_else(|_| panic!("cannot find {compiler_path}"));
137137
let bindir = compiler_path.parent().unwrap();
138138
let compiler_path = compiler_path.to_str().unwrap();
139139
let compiler_args = compiler.cflags_env();

0 commit comments

Comments
 (0)