From 3283a7b345fdd350f41a346cbb49a52e0081d2ec Mon Sep 17 00:00:00 2001 From: sharkdp Date: Tue, 19 May 2020 14:01:00 +0200 Subject: [PATCH] Fix warning --- src/walk.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/walk.rs b/src/walk.rs index 1082e1c..de700d0 100644 --- a/src/walk.rs +++ b/src/walk.rs @@ -1,5 +1,4 @@ use std::borrow::Cow; -use std::env; use std::ffi::OsStr; use std::fs::{FileType, Metadata}; use std::io; @@ -85,7 +84,7 @@ pub fn scan(path_vec: &[PathBuf], pattern: Arc, config: Arc) -> if config.read_global_ignore { #[cfg(target_os = "macos")] - let config_dir_op = env::var_os("XDG_CONFIG_HOME") + let config_dir_op = std::env::var_os("XDG_CONFIG_HOME") .map(PathBuf::from) .filter(|p| p.is_absolute()) .or_else(|| dirs::home_dir().map(|d| d.join(".config")));