Skip to content
Myr

Fix warning

Before adoption: this commit came in with the history the project adopted, so no landing records it.

authored by sharkdp · committed by sharkdp · parent 4cafb28 · Browse files · 1 file+1 added−2 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+1 added−2 removed

  • other:+1 added−2 removed

1 file+1 added−2 removed

modified:src/walk.rs+1 added-2 removed
1use std::borrow::Cow;2use std::env;2use std::ffi::OsStr;3use std::fs::{FileType, Metadata};4use std::io;5use std::path::{Path, PathBuf};
77 unmodified lines
83 }8485 if config.read_global_ignore {86 #[cfg(target_os = "macos")]88 let config_dir_op = env::var_os("XDG_CONFIG_HOME")87 let config_dir_op = std::env::var_os("XDG_CONFIG_HOME")88 .map(PathBuf::from)89 .filter(|p| p.is_absolute())90 .or_else(|| dirs::home_dir().map(|d| d.join(".config")));91
409 unmodified lines