diff --git a/src/args.rs b/src/args.rs index a6b72389..498cd9ed 100644 --- a/src/args.rs +++ b/src/args.rs @@ -268,7 +268,7 @@ pub fn parse_args(config: config::Config) { SetType::Gov { value } => int.set.gov(value, config, set_settings), }, - ACSCommand::ShowConfig {} => show_config(), + ACSCommand::ShowConfig {} => show_config(&config), ACSCommand::InitConfig {} => init_config(), ACSCommand::Interactive {} => interactive(), diff --git a/src/display.rs b/src/display.rs index ba68dc50..ae8b7470 100644 --- a/src/display.rs +++ b/src/display.rs @@ -1,7 +1,7 @@ use std::fmt::Display; use std::thread; -use super::config::get_config; +use super::config::Config; use super::cpu::CPU; use super::power::lid::LidState; use super::system::check_turbo_enabled; @@ -34,8 +34,8 @@ macro_rules! create_issue { }}; } -pub fn show_config() { - println!("{}", get_config()); +pub fn show_config(config: &Config) { + println!("{}", config); } pub fn print_freq(f: f32, raw: bool) {