mirror of
https://gitlab.computer.surgery/matrix/grapevine.git
synced 2025-12-17 15:51:23 +01:00
enable multiple_inherent_impl lint
This commit is contained in:
parent
4a7b9c16cc
commit
6bdaeab1af
3 changed files with 1 additions and 4 deletions
|
|
@ -37,6 +37,7 @@ lossy_float_literal = "warn"
|
||||||
mem_forget = "warn"
|
mem_forget = "warn"
|
||||||
missing_assert_message = "warn"
|
missing_assert_message = "warn"
|
||||||
mod_module_files = "warn"
|
mod_module_files = "warn"
|
||||||
|
multiple_inherent_impl = "warn"
|
||||||
mutex_atomic = "warn"
|
mutex_atomic = "warn"
|
||||||
negative_feature_names = "warn"
|
negative_feature_names = "warn"
|
||||||
pub_without_shorthand = "warn"
|
pub_without_shorthand = "warn"
|
||||||
|
|
|
||||||
|
|
@ -952,8 +952,6 @@ impl service::users::Data for KeyValueDatabase {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
impl KeyValueDatabase {}
|
|
||||||
|
|
||||||
/// Will only return with Some(username) if the password was not empty and the
|
/// Will only return with Some(username) if the password was not empty and the
|
||||||
/// username could be successfully parsed.
|
/// username could be successfully parsed.
|
||||||
/// If utils::string_from_bytes(...) returns an error that username will be skipped
|
/// If utils::string_from_bytes(...) returns an error that username will be skipped
|
||||||
|
|
|
||||||
|
|
@ -87,9 +87,7 @@ impl Error {
|
||||||
error!("BadConfig: {}", message);
|
error!("BadConfig: {}", message);
|
||||||
Self::BadConfig(message)
|
Self::BadConfig(message)
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
impl Error {
|
|
||||||
pub(crate) fn to_response(&self) -> RumaResponse<UiaaResponse> {
|
pub(crate) fn to_response(&self) -> RumaResponse<UiaaResponse> {
|
||||||
if let Self::Uiaa(uiaainfo) = self {
|
if let Self::Uiaa(uiaainfo) = self {
|
||||||
return RumaResponse(UiaaResponse::AuthResponse(uiaainfo.clone()));
|
return RumaResponse(UiaaResponse::AuthResponse(uiaainfo.clone()));
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue