mirror of
https://github.com/G2-Games/minidisc-cli.git
synced 2025-04-19 11:42:53 -05:00
Remove redundant async
This commit is contained in:
parent
04563f31d6
commit
3fd6bb4c4b
2 changed files with 5 additions and 5 deletions
|
@ -135,17 +135,17 @@ impl NetMD {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Gets the device name, this is limited to the devices in the list
|
/// 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
|
&self.model.name
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Gets the vendor id
|
/// Gets the vendor id
|
||||||
pub async fn vendor_id(&self) -> &u16 {
|
pub fn vendor_id(&self) -> &u16 {
|
||||||
&self.model.vendor_id
|
&self.model.vendor_id
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Gets the product id
|
/// Gets the product id
|
||||||
pub async fn product_id(&self) -> &u16 {
|
pub fn product_id(&self) -> &u16 {
|
||||||
&self.model.product_id
|
&self.model.product_id
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -1033,7 +1033,7 @@ impl NetMDInterface {
|
||||||
|
|
||||||
let new_len = new_title.len();
|
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)
|
self.change_descriptor_state(&Descriptor::AudioUTOC1TD, &DescriptorAction::OpenWrite)
|
||||||
.await
|
.await
|
||||||
} else {
|
} else {
|
||||||
|
@ -1055,7 +1055,7 @@ impl NetMDInterface {
|
||||||
|
|
||||||
let _ = self.send_query(&mut query, false, false).await;
|
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)
|
self.change_descriptor_state(&Descriptor::AudioUTOC1TD, &DescriptorAction::Close)
|
||||||
.await
|
.await
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue