]> git.lizzy.rs Git - rust.git/commitdiff
Give clippy some Dogfood to make it happy =^.^=
authorxFrednet <xFrednet@gmail.com>
Sat, 25 Jun 2022 12:53:54 +0000 (14:53 +0200)
committerxFrednet <xFrednet@gmail.com>
Sat, 25 Jun 2022 12:53:54 +0000 (14:53 +0200)
clippy_lints/src/ptr.rs

index 8f729feb090d85456e69a891cb866a60a576532c..dd01e4317a484f37308f6aa566327907e656fb80 100644 (file)
@@ -474,7 +474,7 @@ fn check_fn_args<'cx, 'tcx: 'cx>(
                     };
                     return Some(PtrArg {
                         idx: i,
-                        emission_id: emission_id,
+                        emission_id,
                         span: hir_ty.span,
                         ty_did: adt.did(),
                         ty_name: name.ident.name,