From 109650896643ea48dfabbb9830e9d533003508ac Mon Sep 17 00:00:00 2001 From: David Tolnay Date: Tue, 12 Nov 2024 12:21:29 -0800 Subject: [PATCH] Ignore ref_option_ref pedantic clippy lint in generated code --- impl/src/element.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/impl/src/element.rs b/impl/src/element.rs index b464b67..18a3cc4 100644 --- a/impl/src/element.rs +++ b/impl/src/element.rs @@ -230,6 +230,7 @@ fn do_expand(path: Path, pos: Option, input: Element) -> TokenStream { #vis static #ident : #ty = { #[allow(clippy::no_effect_underscore_binding)] unsafe fn __typecheck(_: #linkme_path::__private::Void) { + #[allow(clippy::ref_option_ref)] let #factory = || -> fn() -> &'static #ty { || &#ident }; unsafe { #linkme_path::DistributedSlice::private_typecheck(#path, #get);