As of rust1.80: cargo clippy now reports doc indentation issues. (#2728)

This commit is contained in:
martin frances 2024-07-30 17:25:53 +01:00 committed by GitHub
parent b9c620d4cd
commit 5809c8f699
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 23 additions and 24 deletions

View file

@ -59,13 +59,12 @@ pub fn server_macro_impl(
.inputs .inputs
.iter_mut() .iter_mut()
.map(|f| { .map(|f| {
let typed_arg = match f { let typed_arg =
FnArg::Receiver(_) => { match f {
return Err(syn::Error::new( FnArg::Receiver(_) => return Err(syn::Error::new(
f.span(), f.span(),
"cannot use receiver types in server function macro", "cannot use receiver types in server function macro",
)) )),
}
FnArg::Typed(t) => t, FnArg::Typed(t) => t,
}; };