Provide a keyboard shortcut to sync all existing albums with MusicBrainz #167

Merged
wojtek merged 13 commits from 166---provide-a-keyboard-shortcut-to-sync-all-existing-albums-with-musicbrainz into main 2024-08-27 17:55:53 +02:00
Showing only changes of commit ac47dd0f12 - Show all commits

View File

@ -165,13 +165,6 @@ mod tests {
} }
} }
pub fn unwrap_matches(self) -> MS {
match self {
AppState::Matches(matches) => matches,
_ => panic!(),
}
}
pub fn unwrap_reload(self) -> RS { pub fn unwrap_reload(self) -> RS {
match self { match self {
AppState::Reload(reload) => reload, AppState::Reload(reload) => reload,
@ -186,6 +179,13 @@ mod tests {
} }
} }
pub fn unwrap_matches(self) -> MS {
match self {
AppState::Matches(matches) => matches,
_ => panic!(),
}
}
pub fn unwrap_error(self) -> ES { pub fn unwrap_error(self) -> ES {
match self { match self {
AppState::Error(error) => error, AppState::Error(error) => error,