chore: Rust 2024 edition
This commit is contained in:
parent
3b86984332
commit
c31a46961a
31 changed files with 48 additions and 48 deletions
|
|
@ -32,5 +32,5 @@ pub trait HealthManager1 {
|
|||
|
||||
/// DestroyApplication method
|
||||
fn destroy_application(&self, application: &zbus::zvariant::ObjectPath<'_>)
|
||||
-> zbus::Result<()>;
|
||||
-> zbus::Result<()>;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -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());
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue