(&self, f: &mut std::fmt::Formatter<'_>)
| 13 | |
| 14 | impl Display for AuthError { |
| 15 | fn fmt(&self, f: &mut std::fmt::Formatter<'_>) -> std::fmt::Result { |
| 16 | match self { |
| 17 | Self::WrongCredentials => write!(f, "Wrong Credentials!"), |
| 18 | Self::InvalidToken => write!(f, "Invalid auth token!"), |
| 19 | Self::FailedToExtractTokenFromRequest => { |
| 20 | write!(f, "Failed to extract token from request!") |
| 21 | } |
| 22 | } |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | impl ResponseError for AuthError { |
nothing calls this directly
no outgoing calls
no test coverage detected