Skip to content

Commit

Permalink
[autofix.ci] apply automated fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
autofix-ci[bot] authored Feb 12, 2025
1 parent bb4d9f7 commit fe274d9
Showing 1 changed file with 7 additions and 6 deletions.
13 changes: 7 additions & 6 deletions server_fn_macro/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit fe274d9

Please sign in to comment.