enable multiple_inherent_impl lint

This commit is contained in:
Charles Hall 2024-05-12 18:31:09 -07:00
parent 4a7b9c16cc
commit 6bdaeab1af
No known key found for this signature in database
GPG key ID: 7B8E0645816E07CF
3 changed files with 1 additions and 4 deletions

View file

@ -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"

View file

@ -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

View file

@ -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()));