(err: &atomic_teams::TeamsError)
| 172 | } |
| 173 | |
| 174 | fn is_org_not_found(err: &atomic_teams::TeamsError) -> bool { |
| 175 | matches!(err, atomic_teams::TeamsError::OrgNotFound(_)) |
| 176 | || matches!( |
| 177 | err, |
| 178 | atomic_teams::TeamsError::Remote(re) if re.is_not_found() |
| 179 | ) |
| 180 | } |
| 181 | |
| 182 | #[cfg(test)] |
| 183 | mod tests { |