chore: Rust 2024 edition
This commit is contained in:
parent
3b86984332
commit
c31a46961a
31 changed files with 48 additions and 48 deletions
|
|
@ -3,7 +3,7 @@ name = "bluez-zbus"
|
|||
version = "0.1.0"
|
||||
description = "dbus bindings for org.bluez with zbus"
|
||||
repository = "https://github.com/pop-os/dbus-settings-bindings"
|
||||
edition = "2021"
|
||||
edition = "2024"
|
||||
license = "MPL-2.0"
|
||||
categories = ["os::linux-apis"]
|
||||
keywords = ["dbus", "bluez", "zbus", "bluetooth"]
|
||||
|
|
|
|||
|
|
@ -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