Make clippy happy

This commit is contained in:
Roey Darwish Dror
2020-12-01 08:49:09 +02:00
parent 9a6b582305
commit 60ba90aa66
2 changed files with 2 additions and 6 deletions

View File

@@ -1,4 +1,4 @@
#![allow(clippy::cognitive_complexity)] #![allow(clippy::cognitive_complexity, clippy::clippy::rc_buffer)]
mod config; mod config;
mod ctrlc; mod ctrlc;
mod error; mod error;

View File

@@ -32,11 +32,7 @@ impl Emacs {
} }
} }
#[cfg(unix)] #[cfg(unix)]
return base_dirs return base_dirs.home_dir().join(".emacs.d").if_exists().or(emacs_xdg_dir);
.home_dir()
.join(".emacs.d")
.if_exists()
.or_else(|| emacs_xdg_dir);
#[cfg(windows)] #[cfg(windows)]
return env::var("HOME") return env::var("HOME")