mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-11-01 12:24:29 +00:00
cargo clippy --fix
This commit is contained in:
parent
423c7dd23a
commit
8ce30264c8
186 changed files with 3056 additions and 3314 deletions
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue