Minor nit
Some checks failed
Cargo CI / Build and Test (pull_request) Failing after 1m55s
Cargo CI / Lint (pull_request) Failing after 1m3s

This commit is contained in:
Wojciech Kozlowski 2024-08-26 19:40:00 +02:00
parent 59b675562d
commit ac47dd0f12

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,