diff --git a/src/audio/device_windows.rs b/src/audio/device_windows.rs index 9c898019..f59e94a9 100644 --- a/src/audio/device_windows.rs +++ b/src/audio/device_windows.rs @@ -134,7 +134,7 @@ fn device_labels(device: &cpal::Device) -> DeviceLabels { } } -pub(super) fn find_wasapi_device(requested_device: &str) -> Result { +pub(crate) fn find_wasapi_device(requested_device: &str) -> Result { let host = cpal::default_host(); let trimmed = requested_device.trim(); diff --git a/src/state.rs b/src/state.rs index 5d40f93b..9afc162c 100644 --- a/src/state.rs +++ b/src/state.rs @@ -7,9 +7,11 @@ use crate::auth::{SessionStore, TwoFactorService, UserStore}; use crate::computer_use::ComputerUseManager; use crate::config::ConfigStore; use crate::db::DatabasePool; +#[cfg(unix)] +use crate::events::MsdDeviceMediaInfo; use crate::events::{ - AtxDeviceInfo, AudioDeviceInfo, EventBus, HidDeviceInfo, LedState, MsdDeviceInfo, - MsdDeviceMediaInfo, SystemEvent, TtydDeviceInfo, VideoDeviceInfo, + AtxDeviceInfo, AudioDeviceInfo, EventBus, HidDeviceInfo, LedState, MsdDeviceInfo, SystemEvent, + TtydDeviceInfo, VideoDeviceInfo, }; use crate::extensions::{ExtensionId, ExtensionManager}; use crate::hid::HidController; diff --git a/src/web/routes.rs b/src/web/routes.rs index e2a6b30c..e49e1cb2 100644 --- a/src/web/routes.rs +++ b/src/web/routes.rs @@ -1,8 +1,11 @@ #[cfg(unix)] -use axum::{extract::DefaultBodyLimit, routing::delete}; +use axum::{ + extract::DefaultBodyLimit, + routing::{delete, put}, +}; use axum::{ middleware, - routing::{any, get, patch, post, put}, + routing::{any, get, patch, post}, Router, }; use std::sync::Arc;