aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKen Matsui <26405363+ken-matsui@users.noreply.github.com>2021-11-01 04:45:52 +0900
committerGitHub <noreply@github.com>2021-10-31 20:45:52 +0100
commitf04a7a4ee7461a97d669fc49b1d061555a7541f7 (patch)
tree429b6a86fa86f27b4e796beed8326dab1304b63d
parentdocs(changelog): update `cargo-make` for `v0.35.3` (diff)
downloadsl0ppij-f04a7a4ee7461a97d669fc49b1d061555a7541f7.tar.gz
sl0ppij-f04a7a4ee7461a97d669fc49b1d061555a7541f7.tar.xz
sl0ppij-f04a7a4ee7461a97d669fc49b1d061555a7541f7.zip
fix(warning): Fix an unused import warning of std::fs on macos (#820)
-rw-r--r--zellij-server/src/os_input_output.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/zellij-server/src/os_input_output.rs b/zellij-server/src/os_input_output.rs
index 09c5e9d7..3ca50ed6 100644
--- a/zellij-server/src/os_input_output.rs
+++ b/zellij-server/src/os_input_output.rs
@@ -3,8 +3,10 @@ use std::collections::HashMap;
#[cfg(target_os = "macos")]
use darwin_libproc;
-use std::env;
+#[cfg(target_os = "linux")]
use std::fs;
+
+use std::env;
use std::os::unix::io::RawFd;
use std::os::unix::process::CommandExt;
use std::path::PathBuf;