mirror of
https://github.com/leptos-rs/leptos
synced 2024-11-10 06:44:17 +00:00
chore: cargo fmt
This commit is contained in:
parent
75184a4638
commit
06fe32e90b
1 changed files with 7 additions and 6 deletions
|
@ -59,14 +59,15 @@ 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 {
|
||||
|
|
Loading…
Reference in a new issue