Skip to content

Commit b7bcba8

Browse files
committed
clippy
1 parent b3f0bc9 commit b7bcba8

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
@@ -364,7 +364,7 @@ pub fn run(tool: Tool, matches: &ArgMatches) -> Result<i32> {
364364
let file = artifact
365365
.executable
366366
.as_ref()
367-
.map_or_else(|| &artifact.filenames[0], |val| val);
367+
.unwrap_or_else(|| &artifact.filenames[0]);
368368

369369
match tool {
370370
// Tools that don't need a build

0 commit comments

Comments
 (0)