fix lints

Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
Jason Volk 2025-03-22 07:09:11 +00:00
parent d1b82ea225
commit 9d0ce3965e
3 changed files with 3 additions and 3 deletions

View file

@ -86,7 +86,7 @@ pub(super) fn bad_request_code(kind: &ErrorKind) -> StatusCode {
pub(super) fn ruma_error_message(error: &ruma::api::client::error::Error) -> String {
if let ErrorBody::Standard { message, .. } = &error.body {
return message.to_string();
return message.clone();
}
format!("{error}")