From 899ebf37b02d053721b9505196d65018b0093e21 Mon Sep 17 00:00:00 2001 From: Penwing Date: Sat, 27 Jan 2024 23:39:36 +0100 Subject: [PATCH] fixed windows issue --- src/tools/mod.rs | 2 ++ src/tools/windows_terminal.rs | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/tools/mod.rs b/src/tools/mod.rs index cb6dd8f..85fb418 100644 --- a/src/tools/mod.rs +++ b/src/tools/mod.rs @@ -18,10 +18,12 @@ pub mod file_tree; #[cfg(target_os = "linux")] pub mod terminal; +#[cfg(target_os = "linux")] pub use terminal::*; #[cfg(target_os = "windows")] pub mod windows_terminal; +#[cfg(target_os = "windows")] pub use windows_terminal::*; pub mod tabs; diff --git a/src/tools/windows_terminal.rs b/src/tools/windows_terminal.rs index 50bb5ea..425fdba 100644 --- a/src/tools/windows_terminal.rs +++ b/src/tools/windows_terminal.rs @@ -31,7 +31,7 @@ impl CommandEntry { CommandEntry { env, command, - result: vec![Line::error("General Kenobi")], + result: vec![Line::error("General Kenobi".to_string())], } } @@ -41,7 +41,7 @@ impl CommandEntry { } pub fn send_command(command: String) -> CommandEntry { - return CommandEntry::new("windows>", "hello there"); + return CommandEntry::new("windows>".to_string(), "hello there".to_string()); }