From 6cfc337d83ae4751b04dfbc09efed5fe4c731820 Mon Sep 17 00:00:00 2001 From: Azalea <22280294+hykilpikonna@users.noreply.github.com> Date: Wed, 22 Oct 2025 11:28:52 +0800 Subject: [PATCH] [O] Fix unused warning on non-windows --- crates/hyfetch/src/neofetch_util.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/crates/hyfetch/src/neofetch_util.rs b/crates/hyfetch/src/neofetch_util.rs index a0567605..b15e6520 100644 --- a/crates/hyfetch/src/neofetch_util.rs +++ b/crates/hyfetch/src/neofetch_util.rs @@ -2,7 +2,9 @@ use std::borrow::Cow; use std::ffi::OsStr; #[cfg(feature = "macchina")] use std::fs; -use std::io::{self, Write as _}; +use std::io::{Write as _}; +#[cfg(windows)] +use std::io::{self}; use std::path::PathBuf; use std::process::Command; use std::sync::OnceLock;