Rollup merge of #130114 - eduardosm:needless-returns, r=compiler-errors
Remove needless returns detected by clippy in the compiler
This commit is contained in:
commit
a31a8fe0cf
38 changed files with 66 additions and 75 deletions
|
@ -182,7 +182,7 @@ pub fn sysroot_candidates() -> SmallVec<[PathBuf; 2]> {
|
|||
}
|
||||
}
|
||||
|
||||
return sysroot_candidates;
|
||||
sysroot_candidates
|
||||
}
|
||||
|
||||
/// Returns the provided sysroot or calls [`get_or_default_sysroot`] if it's none.
|
||||
|
|
|
@ -353,7 +353,7 @@ fn build_options<O: Default>(
|
|||
None => early_dcx.early_fatal(format!("unknown {outputname} option: `{key}`")),
|
||||
}
|
||||
}
|
||||
return op;
|
||||
op
|
||||
}
|
||||
|
||||
#[allow(non_upper_case_globals)]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue