diff options
Diffstat (limited to 'src/config')
-rw-r--r-- | src/config/default.rs | 2 | ||||
-rw-r--r-- | src/config/file_system.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/src/config/default.rs b/src/config/default.rs index 8eedb18..59063f5 100644 --- a/src/config/default.rs +++ b/src/config/default.rs @@ -34,7 +34,7 @@ fn get_config_path(name: &'static str) -> Result<PathBuf> { pub(super) fn create_path(path: PathBuf) -> Result<PathBuf> { if !path.exists() { if let Some(parent) = path.parent() { - std::fs::create_dir_all(&parent) + std::fs::create_dir_all(parent) .with_context(|| format!("Failed to create the '{}' directory", path.display()))? } } diff --git a/src/config/file_system.rs b/src/config/file_system.rs index fd3a8d8..5751583 100644 --- a/src/config/file_system.rs +++ b/src/config/file_system.rs @@ -72,7 +72,7 @@ impl Config { config_path: Option<PathBuf>, ) -> Result<Self> { let config_file_path = config_path - .map(|val| Ok(val)) + .map(Ok) .unwrap_or_else(|| -> Result<_> { paths::config_path() })?; let config: super::definitions::ConfigFile = |