diff --git a/src/backend/alacritty.rs b/src/backend/alacritty.rs index 3cff9ef..10f3f6c 100644 --- a/src/backend/alacritty.rs +++ b/src/backend/alacritty.rs @@ -2,9 +2,12 @@ use super::Functions; use crate::config::Config; use crate::error::GlrnvimError; use std::fs; +#[cfg(target_os = "linux")] use std::path::Path; use std::path::PathBuf; +#[cfg(target_os = "linux")] use std::{thread, time}; +#[cfg(target_os = "linux")] use sysinfo::{Pid, Signal, System}; use tempfile::NamedTempFile; extern crate log; diff --git a/src/config.rs b/src/config.rs index 36fd1cd..23bf78b 100644 --- a/src/config.rs +++ b/src/config.rs @@ -155,7 +155,7 @@ fonts: } #[test] - #[should_panic(expected = "No such file or directory")] + #[should_panic(expected = "kind: NotFound")] fn test_parse_non_exist_config() { parse(PathBuf::from("/non/exists")); }