Skip to content

Commit

Permalink
Merge pull request #104 from dtolnay/refoptionref
Browse files Browse the repository at this point in the history
Ignore ref_option_ref pedantic clippy lint in generated code
  • Loading branch information
dtolnay authored Nov 12, 2024
2 parents 2c96488 + 1096508 commit 2890326
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions impl/src/element.rs
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,7 @@ fn do_expand(path: Path, pos: Option<usize>, 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);
Expand Down

0 comments on commit 2890326

Please sign in to comment.