Rollup merge of #130114 - eduardosm:needless-returns, r=compiler-errors

Remove needless returns detected by clippy in the compiler
This commit is contained in:
Jubilee 2024-09-11 15:53:22 -07:00 committed by GitHub
commit a31a8fe0cf
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
38 changed files with 66 additions and 75 deletions

View file

@ -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.

View file

@ -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)]