We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
lookup_conf_file
1 parent 9e53b65 commit 3b22352Copy full SHA for 3b22352
clippy_lints/src/utils/conf.rs
@@ -478,7 +478,8 @@ pub fn lookup_conf_file() -> io::Result<(Option<PathBuf>, Vec<String>)> {
478
// If neither of those exist, use ".".
479
let mut current = env::var_os("CLIPPY_CONF_DIR")
480
.or_else(|| env::var_os("CARGO_MANIFEST_DIR"))
481
- .map_or_else(|| PathBuf::from("."), PathBuf::from);
+ .map_or_else(|| PathBuf::from("."), PathBuf::from)
482
+ .canonicalize()?;
483
484
let mut found_config: Option<PathBuf> = None;
485
let mut warnings = vec![];
0 commit comments