diff options
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( |