Skip to content

Commit 30a546c

Browse files
committed
Rollup merge of #31842 - dileepbapat:master, r=alexcrichton
I have made changes and built it after that. Please advise, rust-lang/rust#31820
2 parents 21bb3d3 + 0a1b363 commit 30a546c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -385,9 +385,8 @@ fn rust_input(cratefile: &str, externs: core::Externs, matches: &getopts::Matche
385385
*s.borrow_mut() = analysis.take();
386386
});
387387

388-
match matches.opt_str("crate-name") {
389-
Some(name) => krate.name = name,
390-
None => {}
388+
if let Some(name) = matches.opt_str("crate-name") {
389+
krate.name = name
391390
}
392391

393392
// Process all of the crate attributes, extracting plugin metadata along

0 commit comments

Comments
 (0)