Clippy
All checks were successful
Cargo CI / Build and Test (pull_request) Successful in 1m57s
Cargo CI / Lint (pull_request) Successful in 1m6s

This commit is contained in:
Wojciech Kozlowski 2024-03-17 18:44:35 +01:00
parent cfbc7c75b6
commit cb3c6284af

View File

@ -339,7 +339,7 @@ impl<'a, 'b> AlbumState<'a, 'b> {
if seq.0 > 0 { if seq.0 > 0 {
format!("{} ({})", Self::display_album_date(date), seq.0) format!("{} ({})", Self::display_album_date(date), seq.0)
} else { } else {
format!("{}", Self::display_album_date(date)) Self::display_album_date(date)
} }
} }
@ -363,7 +363,7 @@ impl<'a, 'b> AlbumState<'a, 'b> {
match primary { match primary {
Some(ref primary) => { Some(ref primary) => {
if secondary.is_empty() { if secondary.is_empty() {
format!("{}", Self::display_primary_type(primary)) Self::display_primary_type(primary).to_string()
} else { } else {
format!( format!(
"{} ({})", "{} ({})",