about summary refs log tree commit diff stats
path: root/src/config/default.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/default.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 'src/config/default.rs')
-rw-r--r--src/config/default.rs2
1 files changed, 1 insertions, 1 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()))?
         }
     }