From 238a563f2bb66b399a9b826f58df7aea9d09ee60 Mon Sep 17 00:00:00 2001 From: Himadri Bhattacharjee <107522312+lavafroth@users.noreply.github.com> Date: Sun, 11 Feb 2024 11:06:12 +0530 Subject: [PATCH] lint: cargo fmt and clippy --- src/main.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main.rs b/src/main.rs index ddef875..da920f0 100644 --- a/src/main.rs +++ b/src/main.rs @@ -28,7 +28,7 @@ fn main() -> iced::Result { pub fn setup_logger() -> Result<(), fern::InitError> { attach_windows_console(); - + let colors = ColoredLevelConfig::new().info(Color::Green); let make_formatter = |use_colors: bool| { @@ -80,13 +80,13 @@ pub fn setup_logger() -> Result<(), fern::InitError> { /// (Windows) Allow the application to display logs to the terminal /// regardless if it was compiled with `windows_subsystem = "windows"`. -/// +/// /// This is a no-op when compiled to non-windows targets. fn attach_windows_console() { #[cfg(target_os = "windows")] { use win32console::console::WinConsole; - + const ATTACH_PARENT_PROCESS: u32 = 0xFFFFFFFF; let _ = WinConsole::attach_console(ATTACH_PARENT_PROCESS); }