We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent b3f0bc9 commit 84732d2Copy full SHA for 84732d2
src/lib.rs
@@ -363,8 +363,7 @@ pub fn run(tool: Tool, matches: &ArgMatches) -> Result<i32> {
363
// fail for cdylib and other fancy crate kinds.
364
let file = artifact
365
.executable
366
- .as_ref()
367
- .map_or_else(|| &artifact.filenames[0], |val| val);
+ .as_ref().unwrap_or_else(|| &artifact.filenames[0]);
368
369
match tool {
370
// Tools that don't need a build
0 commit comments