From f04a7a4ee7461a97d669fc49b1d061555a7541f7 Mon Sep 17 00:00:00 2001 From: Ken Matsui <26405363+ken-matsui@users.noreply.github.com> Date: Mon, 1 Nov 2021 04:45:52 +0900 Subject: [PATCH] fix(warning): Fix an unused import warning of std::fs on macos (#820) --- zellij-server/src/os_input_output.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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;