enable enum_glob_use lint

This commit is contained in:
Charles Hall 2024-05-14 16:36:45 -07:00
parent da440934bd
commit cb2cd6e253
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF
2 changed files with 6 additions and 1 deletions

View file

@ -104,7 +104,11 @@ impl Error {
let message = format!("{self}");
use ErrorKind::*;
use ErrorKind::{
Forbidden, GuestAccessForbidden, LimitExceeded, MissingToken, NotFound,
ThreepidAuthFailed, ThreepidDenied, TooLarge, Unauthorized, Unknown, UnknownToken,
Unrecognized, UserDeactivated, WrongRoomKeysVersion,
};
let (kind, status_code) = match self {
Self::BadRequest(kind, _) => (
kind.clone(),