diff --git a/packages/desktop/src/providers/provider_output.rs b/packages/desktop/src/providers/provider_output.rs index 479bc762..3afe315a 100644 --- a/packages/desktop/src/providers/provider_output.rs +++ b/packages/desktop/src/providers/provider_output.rs @@ -13,6 +13,7 @@ use super::{ #[derive(Debug, Clone, PartialEq, Serialize)] #[serde(untagged)] pub enum ProviderOutput { + #[cfg(windows)] Audio(AudioOutput), Battery(BatteryOutput), Cpu(CpuOutput), diff --git a/packages/desktop/src/providers/provider_ref.rs b/packages/desktop/src/providers/provider_ref.rs index 7af8d656..b8b94cae 100644 --- a/packages/desktop/src/providers/provider_ref.rs +++ b/packages/desktop/src/providers/provider_ref.rs @@ -10,17 +10,16 @@ use tokio::{ }; use tracing::{info, warn}; +#[cfg(windows)] use super::{ - audio::AudioProvider, battery::BatteryProvider, cpu::CpuProvider, - disk::DiskProvider, host::HostProvider, ip::IpProvider, - memory::MemoryProvider, network::NetworkProvider, - weather::WeatherProvider, Provider, ProviderConfig, ProviderOutput, - SharedProviderState, + audio::AudioProvider, keyboard::KeyboardProvider, + komorebi::KomorebiProvider, media::MediaProvider, }; -#[cfg(windows)] use super::{ - keyboard::KeyboardProvider, komorebi::KomorebiProvider, - media::MediaProvider, + battery::BatteryProvider, cpu::CpuProvider, disk::DiskProvider, + host::HostProvider, ip::IpProvider, memory::MemoryProvider, + network::NetworkProvider, weather::WeatherProvider, Provider, + ProviderConfig, ProviderOutput, SharedProviderState, }; /// Reference to an active provider.