From ba8505c9ad4c3e001120feee3328a79f30f2aab2 Mon Sep 17 00:00:00 2001 From: John Eckersberg Date: Tue, 19 Nov 2024 09:53:16 -0500 Subject: [PATCH] Fix unused import errors We do validation using `--no-default-features` which triggers these Signed-off-by: John Eckersberg --- lib/src/utils.rs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/lib/src/utils.rs b/lib/src/utils.rs index c7580969..5d0a27c7 100644 --- a/lib/src/utils.rs +++ b/lib/src/utils.rs @@ -5,9 +5,14 @@ use std::process::Command; use std::time::Duration; use anyhow::{Context, Result}; +#[cfg(feature = "install")] use camino::Utf8Path; +use cap_std_ext::cap_std::fs::Dir; +#[cfg(feature = "install")] use cap_std_ext::dirext::CapStdExtDirExt; -use cap_std_ext::{cap_std::fs::Dir, prelude::CapStdExtCommandExt}; +#[cfg(feature = "install")] +use cap_std_ext::prelude::CapStdExtCommandExt; +#[cfg(feature = "install")] use fn_error_context::context; use indicatif::HumanDuration; use libsystemd::logging::journal_print;