From cad7827158b89a1e8cd5b614f7ee2f83766a9b36 Mon Sep 17 00:00:00 2001 From: Nickiel12 <35903114+Nickiel12@users.noreply.github.com> Date: Sat, 6 Apr 2024 21:28:27 -0700 Subject: [PATCH] ran cargo fmt --- src/config.rs | 2 +- src/main.rs | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/config.rs b/src/config.rs index 7ec895e..d7c2ee8 100644 --- a/src/config.rs +++ b/src/config.rs @@ -30,4 +30,4 @@ pub fn save_config(config: &AppState) -> Result<(), SaveConfigError> { file.write_all(toml_str.as_bytes())?; info!("Config file saved successfully"); Ok(()) -} \ No newline at end of file +} diff --git a/src/main.rs b/src/main.rs index f151dca..ea989fb 100644 --- a/src/main.rs +++ b/src/main.rs @@ -16,7 +16,8 @@ const APP_ID: &str = "net.nickiel.joystick-controller-client"; fn main() -> glib::ExitCode { env::set_var("gtk_csd", "0"); - if let Err(e) = SimpleLogger::init(simplelog::LevelFilter::Debug, simplelog::Config::default()) { + if let Err(e) = SimpleLogger::init(simplelog::LevelFilter::Debug, simplelog::Config::default()) + { error!("Failed to init the simplelogger!: {e}"); }