chore: Rust 2024 edition

This commit is contained in:
Vukašin Vojinović 2025-10-05 13:45:37 +02:00 committed by Michael Murphy
parent 3b86984332
commit c31a46961a
31 changed files with 48 additions and 48 deletions

View file

@ -32,5 +32,5 @@ pub trait HealthManager1 {
/// DestroyApplication method
fn destroy_application(&self, application: &zbus::zvariant::ObjectPath<'_>)
-> zbus::Result<()>;
-> zbus::Result<()>;
}

View file

@ -45,7 +45,9 @@ pub async fn get_adapters<'a>(
.filter_map(std::result::Result::err)
.collect();
if errors.len() > 1 {
eprintln!("Multiple errors occurs when fetching connected device: {errors:?}. Only the last one will be returned.");
eprintln!(
"Multiple errors occurs when fetching connected device: {errors:?}. Only the last one will be returned."
);
}
return Err(errors.pop().unwrap());
}
@ -165,7 +167,9 @@ pub async fn get_devices<'a>(
.filter_map(std::result::Result::err)
.collect();
if errors.len() > 1 {
eprintln!("Multiple errors occurs when fetching connected device: {errors:?}. Only the last one will be returned.");
eprintln!(
"Multiple errors occurs when fetching connected device: {errors:?}. Only the last one will be returned."
);
}
return Err(errors.pop().unwrap());
}