(err: &atomic_teams::TeamsError)
| 157 | } |
| 158 | |
| 159 | fn is_org_not_found(err: &atomic_teams::TeamsError) -> bool { |
| 160 | matches!(err, atomic_teams::TeamsError::OrgNotFound(_)) |
| 161 | || matches!( |
| 162 | err, |
| 163 | atomic_teams::TeamsError::Remote(re) if re.is_not_found() |
| 164 | ) |
| 165 | } |
| 166 | |
| 167 | #[cfg(test)] |
| 168 | mod tests { |