Skip to content
This repository has been archived by the owner on Jan 24, 2022. It is now read-only.

Commit

Permalink
#[allow(missing_docs)] on #[pre_init] hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
jonas-schievink committed Jan 26, 2020
1 parent 431f6d8 commit 0b2704b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions macros/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -735,6 +735,7 @@ pub fn pre_init(args: TokenStream, input: TokenStream) -> TokenStream {

quote!(
#[export_name = "__pre_init"]
#[allow(missing_docs)] // we make a private fn public, which can trigger this lint
#(#attrs)*
pub unsafe fn #ident() #block
)
Expand Down

0 comments on commit 0b2704b

Please sign in to comment.