mirror of
https://github.com/rust-lang/cargo.git
synced 2025-10-01 11:30:39 +00:00
Resolve a needless_return lint warning
This commit is contained in:
parent
d085b5e7af
commit
8381bd4350
@ -127,11 +127,11 @@ pub fn exec(config: &mut Config, args: &ArgMatches) -> CliResult {
|
||||
);
|
||||
|
||||
let err = ops::run_tests(&ws, &ops, &test_args)?;
|
||||
return match err {
|
||||
match err {
|
||||
None => Ok(()),
|
||||
Some(err) => Err(match err.exit.as_ref().and_then(|e| e.code()) {
|
||||
Some(i) => CliError::new(format_err!("{}", err.hint(&ws)), i),
|
||||
None => CliError::new(err.into(), 101),
|
||||
}),
|
||||
};
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user