Lints
All checks were successful
Cargo CI / Build and Test (pull_request) Successful in 1m55s
Cargo CI / Lint (pull_request) Successful in 1m7s

This commit is contained in:
Wojciech Kozlowski 2024-09-24 22:35:18 +02:00
parent f674b4c3b7
commit bbafe65881

View File

@ -76,8 +76,8 @@ impl<'a> ArtistOverlay<'a> {
Properties: {}", Properties: {}",
artist.map(|a| a.meta.id.name.as_str()).unwrap_or(""), artist.map(|a| a.meta.id.name.as_str()).unwrap_or(""),
artist artist
.and_then(|a| Some(UiDisplay::display_mb_ref_option_as_url(&a.meta.musicbrainz))) .map(|a| UiDisplay::display_mb_ref_option_as_url(&a.meta.musicbrainz))
.unwrap_or(""), .unwrap_or_default(),
Self::opt_hashmap_to_string( Self::opt_hashmap_to_string(
artist.map(|a| &a.meta.properties), artist.map(|a| &a.meta.properties),
&double_item_indent, &double_item_indent,
@ -104,8 +104,8 @@ impl<'a> AlbumOverlay<'a> {
MusicBrainz: {}", MusicBrainz: {}",
album.map(|a| a.meta.id.title.as_str()).unwrap_or(""), album.map(|a| a.meta.id.title.as_str()).unwrap_or(""),
album album
.and_then(|a| Some(UiDisplay::display_mb_ref_option_as_url(&a.meta.musicbrainz))) .map(|a| UiDisplay::display_mb_ref_option_as_url(&a.meta.musicbrainz))
.unwrap_or(""), .unwrap_or_default(),
)); ));
AlbumOverlay { properties } AlbumOverlay { properties }