Skip to content

Commit

Permalink
refactor: rename manager.rs -> provider_manager.rs
Browse files Browse the repository at this point in the history
  • Loading branch information
lars-berger committed Aug 17, 2024
1 parent 4fcd70e commit 2aeb4db
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
6 changes: 4 additions & 2 deletions packages/desktop/src/main.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,9 @@
use std::{collections::HashMap, env, sync::Arc};

use clap::Parser;
use providers::{config::ProviderConfig, manager::init_provider_manager};
use providers::{
config::ProviderConfig, provider_manager::init_provider_manager,
};
use serde::Serialize;
use tauri::{
AppHandle, Manager, State, WebviewUrl, WebviewWindowBuilder, Window,
Expand All @@ -19,7 +21,7 @@ use tracing_subscriber::EnvFilter;
use crate::{
cli::{Cli, CliCommand},
monitors::get_monitors_str,
providers::manager::ProviderManager,
providers::provider_manager::ProviderManager,
sys_tray::setup_sys_tray,
util::window_ext::WindowExt,
};
Expand Down
2 changes: 1 addition & 1 deletion packages/desktop/src/providers/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ pub mod host;
pub mod ip;
#[cfg(windows)]
pub mod komorebi;
pub mod manager;
pub mod memory;
pub mod network;
pub mod provider;
pub mod provider_manager;
pub mod provider_ref;
pub mod variables;
pub mod weather;
File renamed without changes.
7 changes: 4 additions & 3 deletions packages/desktop/src/providers/provider_ref.rs
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@ use tracing::info;
use super::komorebi::KomorebiProvider;
use super::{
battery::BatteryProvider, config::ProviderConfig, cpu::CpuProvider,
host::HostProvider, ip::IpProvider, manager::SharedProviderState,
memory::MemoryProvider, network::NetworkProvider, provider::Provider,
variables::ProviderVariables, weather::WeatherProvider,
host::HostProvider, ip::IpProvider, memory::MemoryProvider,
network::NetworkProvider, provider::Provider,
provider_manager::SharedProviderState, variables::ProviderVariables,
weather::WeatherProvider,
};

/// Reference to an active provider.
Expand Down

0 comments on commit 2aeb4db

Please sign in to comment.