about summary refs log tree commit diff stats
path: root/src/config/file_system.rs
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-08-25 17:30:02 +0200
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2024-08-25 17:30:02 +0200
commita60cd8f2a96aae3f7db8dfccec2aa5cf21f8c411 (patch)
tree24dc96e5384cf9309ae4ec00d6d91497e3253484 /src/config/file_system.rs
parentdocs(yt_dlp/progress_hook): Add a note about the possibility to calculate vid... (diff)
downloadyt-a60cd8f2a96aae3f7db8dfccec2aa5cf21f8c411.tar.gz
yt-a60cd8f2a96aae3f7db8dfccec2aa5cf21f8c411.zip
refactor(treewide): Conform to `cargo clippy`
Diffstat (limited to '')
-rw-r--r--src/config/file_system.rs2
1 files changed, 1 insertions, 1 deletions
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 =