diff --git a/src/main.rs b/src/main.rs index 133fd36..830c58c 100644 --- a/src/main.rs +++ b/src/main.rs @@ -27,6 +27,7 @@ pub mod env_var_descriptions; pub mod file_builders; pub mod file_utils; pub mod func_runner; +pub mod gpu_profile; pub mod log_level; pub mod log_parser; pub mod paths; @@ -37,7 +38,6 @@ pub mod runner_pipeline; pub mod steamvr_utils; pub mod ui; pub mod xr_devices; -pub mod gpu_profile; fn restore_steam_xr_files() { let active_runtime = get_current_active_runtime(); diff --git a/src/paths.rs b/src/paths.rs index 779d9c1..e0b8723 100644 --- a/src/paths.rs +++ b/src/paths.rs @@ -110,7 +110,7 @@ pub fn get_exec_prefix() -> String { pub fn get_ipc_file_path(xrservice_type: &XRServiceType) -> String { format!( "{runtime}/{xrservice}_comp_ipc", - runtime=get_xdg_runtime_dir(), + runtime = get_xdg_runtime_dir(), xrservice = match xrservice_type { XRServiceType::Monado => "monado", XRServiceType::Wivrn => "wivrn", diff --git a/src/profile.rs b/src/profile.rs index 2ba9db4..59b5749 100644 --- a/src/profile.rs +++ b/src/profile.rs @@ -1,7 +1,8 @@ use crate::{ file_utils::get_writer, paths::{ - data_monado_path, data_opencomposite_path, get_data_dir, BWRAP_SYSTEM_PREFIX, SYSTEM_PREFIX, get_ipc_file_path, + data_monado_path, data_opencomposite_path, get_data_dir, get_ipc_file_path, + BWRAP_SYSTEM_PREFIX, SYSTEM_PREFIX, }, }; use serde::{Deserialize, Serialize}; diff --git a/src/ui/main_view.rs b/src/ui/main_view.rs index 7d99f9c..6e8f768 100644 --- a/src/ui/main_view.rs +++ b/src/ui/main_view.rs @@ -6,7 +6,7 @@ use super::steam_launch_options_box::{SteamLaunchOptionsBox, SteamLaunchOptionsB use crate::config::Config; use crate::constants::APP_NAME; use crate::file_utils::mount_has_nosuid; -use crate::gpu_profile::{get_gpu_power_profile, GpuPowerProfile, get_set_vr_pow_prof_cmd}; +use crate::gpu_profile::{get_gpu_power_profile, get_set_vr_pow_prof_cmd, GpuPowerProfile}; use crate::profile::{LighthouseDriver, Profile}; use crate::steamvr_utils::chaperone_info_exists; use crate::ui::app::{