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

@ -87,9 +87,7 @@ impl Error {
error!("BadConfig: {}", message);
Self::BadConfig(message)
}
}
impl Error {
pub(crate) fn to_response(&self) -> RumaResponse<UiaaResponse> {
if let Self::Uiaa(uiaainfo) = self {
return RumaResponse(UiaaResponse::AuthResponse(uiaainfo.clone()));