mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 07:41:23 +01:00
enable enum_glob_use lint
This commit is contained in:
parent
da440934bd
commit
cb2cd6e253
2 changed files with 6 additions and 1 deletions
|
|
@ -27,6 +27,7 @@ deref_by_slicing = "warn"
|
|||
doc_markdown = "warn"
|
||||
empty_drop = "warn"
|
||||
empty_structs_with_brackets = "warn"
|
||||
enum_glob_use = "warn"
|
||||
error_impl_error = "warn"
|
||||
filetype_is_file = "warn"
|
||||
float_cmp_const = "warn"
|
||||
|
|
|
|||
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue