run cargo fix for rust 2024 changes and rustfmt
Signed-off-by: June Clementine Strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
e97952b7f6
commit
a1e1f40ded
320 changed files with 2212 additions and 2039 deletions
|
@ -165,10 +165,10 @@ macro_rules! err_lev {
|
|||
use std::{fmt, fmt::Write};
|
||||
|
||||
use tracing::{
|
||||
level_enabled, Callsite, Event, __macro_support, __tracing_log,
|
||||
__macro_support, __tracing_log, Callsite, Event, Level,
|
||||
callsite::DefaultCallsite,
|
||||
field::{Field, ValueSet, Visit},
|
||||
Level,
|
||||
level_enabled,
|
||||
};
|
||||
|
||||
struct Visitor<'a>(&'a mut String);
|
||||
|
|
|
@ -152,8 +152,8 @@ impl Error {
|
|||
/// Generate the error message string.
|
||||
pub fn message(&self) -> String {
|
||||
match self {
|
||||
| Self::Federation(ref origin, ref error) => format!("Answer from {origin}: {error}"),
|
||||
| Self::Ruma(ref error) => response::ruma_error_message(error),
|
||||
| Self::Federation(origin, error) => format!("Answer from {origin}: {error}"),
|
||||
| Self::Ruma(error) => response::ruma_error_message(error),
|
||||
| _ => format!("{self}"),
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
use std::{
|
||||
any::Any,
|
||||
panic::{panic_any, RefUnwindSafe, UnwindSafe},
|
||||
panic::{RefUnwindSafe, UnwindSafe, panic_any},
|
||||
};
|
||||
|
||||
use super::Error;
|
||||
|
|
|
@ -2,11 +2,11 @@ use bytes::BytesMut;
|
|||
use http::StatusCode;
|
||||
use http_body_util::Full;
|
||||
use ruma::api::{
|
||||
OutgoingResponse,
|
||||
client::{
|
||||
error::{ErrorBody, ErrorKind},
|
||||
uiaa::UiaaResponse,
|
||||
},
|
||||
OutgoingResponse,
|
||||
};
|
||||
|
||||
use super::Error;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue