mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2025-09-12 02:33:01 +02:00
apply new rustfmt.toml changes, fix some clippy lints
Signed-off-by: strawberry <strawberry@puppygock.gay>
This commit is contained in:
parent
0317cc8cc5
commit
77e0b76408
296 changed files with 7147 additions and 4300 deletions
|
@ -66,14 +66,14 @@ ruma_handler!(T1, T2, T3, T4);
|
|||
|
||||
const fn method_to_filter(method: &Method) -> MethodFilter {
|
||||
match *method {
|
||||
Method::DELETE => MethodFilter::DELETE,
|
||||
Method::GET => MethodFilter::GET,
|
||||
Method::HEAD => MethodFilter::HEAD,
|
||||
Method::OPTIONS => MethodFilter::OPTIONS,
|
||||
Method::PATCH => MethodFilter::PATCH,
|
||||
Method::POST => MethodFilter::POST,
|
||||
Method::PUT => MethodFilter::PUT,
|
||||
Method::TRACE => MethodFilter::TRACE,
|
||||
_ => panic!("Unsupported HTTP method"),
|
||||
| Method::DELETE => MethodFilter::DELETE,
|
||||
| Method::GET => MethodFilter::GET,
|
||||
| Method::HEAD => MethodFilter::HEAD,
|
||||
| Method::OPTIONS => MethodFilter::OPTIONS,
|
||||
| Method::PATCH => MethodFilter::PATCH,
|
||||
| Method::POST => MethodFilter::POST,
|
||||
| Method::PUT => MethodFilter::PUT,
|
||||
| Method::TRACE => MethodFilter::TRACE,
|
||||
| _ => panic!("Unsupported HTTP method"),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue