1
Fork 0

Remove needless returns detected by clippy in the compiler

This commit is contained in:
Eduardo Sánchez Muñoz 2024-09-09 12:22:00 +02:00
parent adf8d168af
commit 0b20ffcb63
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)]