fix lints
Signed-off-by: Jason Volk <jason@zemos.net>
This commit is contained in:
parent
d1b82ea225
commit
9d0ce3965e
3 changed files with 3 additions and 3 deletions
|
@ -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}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue