From bc4297bbbbce05b785558fe5193981313f1f0de3 Mon Sep 17 00:00:00 2001 From: Hiers Date: Sun, 18 Feb 2024 10:20:51 +0000 Subject: [PATCH] Windows specific fixes. --- src/main.rs | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/main.rs b/src/main.rs index 0cd152f..f759a1a 100644 --- a/src/main.rs +++ b/src/main.rs @@ -220,7 +220,6 @@ fn terminal_size() -> Result { #[cfg(windows)] fn terminal_size() -> Result { use windows_sys::Win32::System::Console::*; - use colored::control; if let Err(e) = control::set_virtual_terminal(true) { panic!("Could not set terminal as virtual: {:?}", e); @@ -267,7 +266,6 @@ fn get_radkfile_path() -> Option { use std::os::windows::ffi::OsStringExt; use windows_sys::Win32::Foundation::{MAX_PATH, S_OK}; use windows_sys::Win32::UI::Shell::{SHGetFolderPathW, CSIDL_PROFILE}; - use std::env; match env::var_os("USERPROFILE").filter(|s| !s.is_empty()).map(PathBuf::from) { Some(path) => {