Skip to content

Commit 84732d2

Browse files
committed
clippy
1 parent b3f0bc9 commit 84732d2

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -363,8 +363,7 @@ pub fn run(tool: Tool, matches: &ArgMatches) -> Result<i32> {
363363
// fail for cdylib and other fancy crate kinds.
364364
let file = artifact
365365
.executable
366-
.as_ref()
367-
.map_or_else(|| &artifact.filenames[0], |val| val);
366+
.as_ref().unwrap_or_else(|| &artifact.filenames[0]);
368367

369368
match tool {
370369
// Tools that don't need a build

0 commit comments

Comments
 (0)