cargo clippy --fix

This commit is contained in:
Lukas Wirth 2025-07-31 10:30:22 +02:00
parent 423c7dd23a
commit 8ce30264c8
186 changed files with 3056 additions and 3314 deletions

View file

@ -278,15 +278,15 @@ pub(crate) fn query_group_impl(
return Err(syn::Error::new(signature.span(), "Queries must have a return type"));
};
if let syn::Type::Path(ref ty_path) = *return_ty {
if matches!(query_kind, QueryKind::Input) {
let field = InputStructField {
name: method_name.to_token_stream(),
ty: ty_path.path.to_token_stream(),
};
if let syn::Type::Path(ref ty_path) = *return_ty
&& matches!(query_kind, QueryKind::Input)
{
let field = InputStructField {
name: method_name.to_token_stream(),
ty: ty_path.path.to_token_stream(),
};
input_struct_fields.push(field);
}
input_struct_fields.push(field);
}
if let Some(block) = &mut method.default {