Skip to content

Commit

Permalink
fix: specify generic which caused tauri app not to build
Browse files Browse the repository at this point in the history
  • Loading branch information
gmallios committed Jul 11, 2024
1 parent c0124e8 commit afca293
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions soundcore-lib/src/device_manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ use typeshare::typeshare;

use manager_fut::ManagerFuture;
/// default-features shall be set to false
#[cfg(feature = "mock")]
#[cfg(any(feature = "mock", feature = "btleplug-backend", feature = "winrt-backend"))]
use manager_fut::TokioFuture;

use crate::{
Expand Down Expand Up @@ -147,7 +147,7 @@ pub struct DiscoveredDevice {
not(feature = "winrt-backend"),
not(feature = "mock")
))]
pub async fn create_device_manager() -> DeviceManager<BtlePlugBLEManager> {
pub async fn create_device_manager() -> DeviceManager<BtlePlugBLEManager, TokioFuture> {
let manager = BtlePlugBLEManager::new().await.unwrap();
DeviceManager::new(manager).await
}
Expand Down

0 comments on commit afca293

Please sign in to comment.