Make clippy happy
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
#![allow(clippy::cognitive_complexity)]
|
||||
#![allow(clippy::cognitive_complexity, clippy::clippy::rc_buffer)]
|
||||
mod config;
|
||||
mod ctrlc;
|
||||
mod error;
|
||||
|
||||
@@ -32,11 +32,7 @@ impl Emacs {
|
||||
}
|
||||
}
|
||||
#[cfg(unix)]
|
||||
return base_dirs
|
||||
.home_dir()
|
||||
.join(".emacs.d")
|
||||
.if_exists()
|
||||
.or_else(|| emacs_xdg_dir);
|
||||
return base_dirs.home_dir().join(".emacs.d").if_exists().or(emacs_xdg_dir);
|
||||
|
||||
#[cfg(windows)]
|
||||
return env::var("HOME")
|
||||
|
||||
Reference in New Issue
Block a user