Formatting
Some checks failed
Cargo CI / Build and Test (pull_request) Failing after 1m44s
Cargo CI / Lint (pull_request) Failing after 1m6s

This commit is contained in:
Wojciech Kozlowski 2024-08-30 15:53:41 +02:00
parent 6d77e2155f
commit ce9c1c9228
2 changed files with 6 additions and 2 deletions

View File

@ -144,7 +144,7 @@ pub struct AppPublicAlbumMatches<'app> {
#[derive(Debug, PartialEq, Eq)] #[derive(Debug, PartialEq, Eq)]
pub enum AppPublicMatchesKind<'app> { pub enum AppPublicMatchesKind<'app> {
Artist(AppPublicArtistMatches<'app>), Artist(AppPublicArtistMatches<'app>),
Album(AppPublicAlbumMatches<'app>) Album(AppPublicAlbumMatches<'app>),
} }
impl<'app> AppPublicMatchesKind<'app> { impl<'app> AppPublicMatchesKind<'app> {

View File

@ -25,7 +25,11 @@ pub struct Match<T> {
impl<T> Match<T> { impl<T> Match<T> {
pub fn new(score: u8, item: T) -> Self { pub fn new(score: u8, item: T) -> Self {
Match { score, item, disambiguation: None } Match {
score,
item,
disambiguation: None,
}
} }
pub fn set_disambiguation<S: Into<String>>(&mut self, disambiguation: S) { pub fn set_disambiguation<S: Into<String>>(&mut self, disambiguation: S) {