Lint for unused borrows as part of UNUSED_MUST_USE
This commit is contained in:
parent
1a462831ad
commit
88abd7d81d
18 changed files with 113 additions and 35 deletions
|
@ -54,7 +54,7 @@ pub fn hash_stable_generic_derive(mut s: synstructure::Structure<'_>) -> proc_ma
|
|||
quote! {}
|
||||
} else if let Some(project) = attrs.project {
|
||||
quote! {
|
||||
&#bi.#project.hash_stable(__hcx, __hasher);
|
||||
(&#bi.#project).hash_stable(__hcx, __hasher);
|
||||
}
|
||||
} else {
|
||||
quote! {
|
||||
|
@ -96,7 +96,7 @@ pub fn hash_stable_derive(mut s: synstructure::Structure<'_>) -> proc_macro2::To
|
|||
quote! {}
|
||||
} else if let Some(project) = attrs.project {
|
||||
quote! {
|
||||
&#bi.#project.hash_stable(__hcx, __hasher);
|
||||
(&#bi.#project).hash_stable(__hcx, __hasher);
|
||||
}
|
||||
} else {
|
||||
quote! {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue