diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-25 17:30:02 +0200 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2024-08-25 17:30:02 +0200 |
commit | a60cd8f2a96aae3f7db8dfccec2aa5cf21f8c411 (patch) | |
tree | 24dc96e5384cf9309ae4ec00d6d91497e3253484 /src/storage/video_database/getters.rs | |
parent | docs(yt_dlp/progress_hook): Add a note about the possibility to calculate vid... (diff) | |
download | yt-a60cd8f2a96aae3f7db8dfccec2aa5cf21f8c411.tar.gz yt-a60cd8f2a96aae3f7db8dfccec2aa5cf21f8c411.zip |
refactor(treewide): Conform to `cargo clippy`
Diffstat (limited to 'src/storage/video_database/getters.rs')
-rw-r--r-- | src/storage/video_database/getters.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/storage/video_database/getters.rs b/src/storage/video_database/getters.rs index 176ebbb..f2b0507 100644 --- a/src/storage/video_database/getters.rs +++ b/src/storage/video_database/getters.rs @@ -113,7 +113,7 @@ pub async fn get_videos( "Failed to query videos with states: '{}'", allowed_states.iter().fold(String::new(), |mut acc, state| { acc.push(' '); - acc.push_str(&state.as_str()); + acc.push_str(state.as_str()); acc }), ) @@ -126,7 +126,7 @@ pub async fn get_videos( cache_path: base .get::<Option<String>, &str>("cache_path") .as_ref() - .map(|val| PathBuf::from(val)), + .map(PathBuf::from), description: base.get::<Option<String>, &str>("description").clone(), duration: base.get("duration"), extractor_hash: ExtractorHash::from_hash( |