Remove redundant async

This commit is contained in:
asivery 2024-03-10 13:13:53 +01:00
parent 04563f31d6
commit 3fd6bb4c4b
2 changed files with 5 additions and 5 deletions

View file

@ -135,17 +135,17 @@ impl NetMD {
}
/// Gets the device name, this is limited to the devices in the list
pub async fn device_name(&self) -> &Option<String> {
pub fn device_name(&self) -> &Option<String> {
&self.model.name
}
/// Gets the vendor id
pub async fn vendor_id(&self) -> &u16 {
pub fn vendor_id(&self) -> &u16 {
&self.model.vendor_id
}
/// Gets the product id
pub async fn product_id(&self) -> &u16 {
pub fn product_id(&self) -> &u16 {
&self.model.product_id
}

View file

@ -1033,7 +1033,7 @@ impl NetMDInterface {
let new_len = new_title.len();
if self.net_md_device.vendor_id().await == &0x04dd {
if self.net_md_device.vendor_id() == &0x04dd {
self.change_descriptor_state(&Descriptor::AudioUTOC1TD, &DescriptorAction::OpenWrite)
.await
} else {
@ -1055,7 +1055,7 @@ impl NetMDInterface {
let _ = self.send_query(&mut query, false, false).await;
if self.net_md_device.vendor_id().await == &0x04dd {
if self.net_md_device.vendor_id() == &0x04dd {
self.change_descriptor_state(&Descriptor::AudioUTOC1TD, &DescriptorAction::Close)
.await
} else {