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

@ -27,6 +27,7 @@ deref_by_slicing = "warn"
doc_markdown = "warn" doc_markdown = "warn"
empty_drop = "warn" empty_drop = "warn"
empty_structs_with_brackets = "warn" empty_structs_with_brackets = "warn"
enum_glob_use = "warn"
error_impl_error = "warn" error_impl_error = "warn"
filetype_is_file = "warn" filetype_is_file = "warn"
float_cmp_const = "warn" float_cmp_const = "warn"

View file

@ -104,7 +104,11 @@ impl Error {
let message = format!("{self}"); 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 { let (kind, status_code) = match self {
Self::BadRequest(kind, _) => ( Self::BadRequest(kind, _) => (
kind.clone(), kind.clone(),