Compare commits

..

1 Commits

Author SHA1 Message Date
Connor Johnstone a57125b9cd clippy 2026-03-26 17:52:03 -04:00
+4 -4
View File
@@ -356,7 +356,7 @@ pub async fn add_track(
async fn finish_add_track( async fn finish_add_track(
conn: &DatabaseConnection, conn: &DatabaseConnection,
title: &str, title: &str,
artist_name: &str, _artist_name: &str,
recording_mbid: Option<String>, recording_mbid: Option<String>,
artist: artist::Model, artist: artist::Model,
user_id: Option<i32>, user_id: Option<i32>,
@@ -513,11 +513,11 @@ async fn load_or_build_discography(
} }
// Cache the result if we found anything // Cache the result if we found anything
if !recordings.is_empty() { if !recordings.is_empty()
if let Ok(json) = serde_json::to_string(&recordings) { && let Ok(json) = serde_json::to_string(&recordings)
{
let _ = queries::cache::set(conn, &cache_key, "computed", &json, 7 * 86400).await; let _ = queries::cache::set(conn, &cache_key, "computed", &json, 7 * 86400).await;
} }
}
recordings recordings
} }