clippy try 2

This commit is contained in:
Brendan Hansknecht 2024-12-28 11:56:11 -08:00
parent a3fba8afbf
commit c073f1fb03
No known key found for this signature in database
GPG key ID: 0EA784685083E75B

View file

@ -8,7 +8,7 @@ use std::path::Path;
// //
// we also include a "globaldce" pass at the beginning of each pipeline here, which is required // we also include a "globaldce" pass at the beginning of each pipeline here, which is required
// to prevent bugs with the surgical linker, and also improves the build time. // to prevent bugs with the surgical linker, and also improves the build time.
pub fn get_llvm_passes_string<'a>(arena: &'a Bump, opt_level: OptLevel) -> &'a str { pub fn get_llvm_passes_string(arena: &Bump, opt_level: OptLevel) -> &str {
(String::from_str_in("globaldce,", arena) (String::from_str_in("globaldce,", arena)
+ match opt_level { + match opt_level {
OptLevel::Development | OptLevel::Normal => "default<O0>", OptLevel::Development | OptLevel::Normal => "default<O0>",