Provide a keyboard shortcut to sync all existing albums with MusicBrainz #167
@ -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,
|
||||||
|
Loading…
Reference in New Issue
Block a user