mirror of
https://github.com/rust-lang/rust.git
synced 2025-04-28 02:57:37 +00:00
opt-dist: apply considerable clippy suggestions
Signed-off-by: onur-ozkan <work@onurozkan.dev>
This commit is contained in:
parent
80d96dffae
commit
a31b1b2eeb
@ -216,11 +216,9 @@ pub fn gather_bolt_profiles(
|
||||
log::info!("Profile file count: {}", profiles.len());
|
||||
|
||||
// Delete the gathered profiles
|
||||
for profile in glob::glob(&format!("{profile_prefix}*"))?.into_iter() {
|
||||
if let Ok(profile) = profile {
|
||||
if let Err(error) = std::fs::remove_file(&profile) {
|
||||
log::error!("Cannot delete BOLT profile {}: {error:?}", profile.display());
|
||||
}
|
||||
for profile in glob::glob(&format!("{profile_prefix}*"))?.flatten() {
|
||||
if let Err(error) = std::fs::remove_file(&profile) {
|
||||
log::error!("Cannot delete BOLT profile {}: {error:?}", profile.display());
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user