Chore: Minor, ran ``cargo fmt`` (#2254)

This commit is contained in:
martin frances 2024-02-03 22:24:12 +00:00 committed by GitHub
parent 0cba7bc22b
commit 5029b8f315
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 7 additions and 8 deletions

View file

@ -28,7 +28,7 @@
//! ## Example
//!
//! ```rust
//!
//!
//! use leptos::*;
//! use leptos_router::*;
//!

View file

@ -59,15 +59,14 @@ pub fn server_macro_impl(
.inputs
.iter_mut()
.map(|f| {
let typed_arg = match f {
FnArg::Receiver(_) => {
return Err(syn::Error::new(
let typed_arg =
match f {
FnArg::Receiver(_) => return Err(syn::Error::new(
f.span(),
"cannot use receiver types in server function macro",
))
}
FnArg::Typed(t) => t,
};
)),
FnArg::Typed(t) => t,
};
// strip `mut`, which is allowed in fn args but not in struct fields
if let Pat::Ident(ident) = &mut *typed_arg.pat {