aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authordivens <divens@users.noreply.github.com>2026-03-28 10:38:37 +0100
committerGitHub <noreply@github.com>2026-03-28 10:38:37 +0100
commitd12b75800c7fce88853b25f76219902272069a26 (patch)
treeab37a0de890503886abc068cab9dbe829b7c1a97
parentfix(windows): normalize temp socket paths (#4923) (diff)
downloadsl0ppij-d12b75800c7fce88853b25f76219902272069a26.tar.gz
sl0ppij-d12b75800c7fce88853b25f76219902272069a26.tar.xz
sl0ppij-d12b75800c7fce88853b25f76219902272069a26.zip
fix: resolve Windows compilation warnings (#4890)
- Consume unused CompilationResult from embed_resource::compile in build.rs - Gate std::io::prelude import with #[cfg(unix)] since it's only used by daemonize_web_server which is unix-only Co-authored-by: divens <divens.dev@gmail.com>
-rw-r--r--src/build.rs2
-rw-r--r--zellij-client/src/web_client/mod.rs1
2 files changed, 2 insertions, 1 deletions
diff --git a/src/build.rs b/src/build.rs
index 613c9483..ef173e3a 100644
--- a/src/build.rs
+++ b/src/build.rs
@@ -9,5 +9,5 @@ fn main() {
// Embed the application icon into the Windows executable.
#[cfg(target_os = "windows")]
- embed_resource::compile("assets/zellij.rc", embed_resource::NONE);
+ let _ = embed_resource::compile("assets/zellij.rc", embed_resource::NONE);
}
diff --git a/zellij-client/src/web_client/mod.rs b/zellij-client/src/web_client/mod.rs
index b63e066f..ac9ca4ec 100644
--- a/zellij-client/src/web_client/mod.rs
+++ b/zellij-client/src/web_client/mod.rs
@@ -35,6 +35,7 @@ use interprocess::unnamed_pipe::pipe;
#[cfg(unix)]
use nix::sys::stat::{umask, Mode};
+#[cfg(unix)]
use std::io::prelude::*;
#[cfg(unix)]
use std::io::{BufRead, BufReader};