Skip to content

Commit 36b33b2

Browse files
#[allow(missing_docs)] on #[pre_init] hooks
1 parent 22145ae commit 36b33b2

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

cortex-m-rt/macros/src/lib.rs

+1
Original file line numberDiff line numberDiff line change
@@ -767,6 +767,7 @@ pub fn pre_init(args: TokenStream, input: TokenStream) -> TokenStream {
767767

768768
quote!(
769769
#[export_name = "__pre_init"]
770+
#[allow(missing_docs)] // we make a private fn public, which can trigger this lint
770771
#(#attrs)*
771772
pub unsafe fn #ident() #block
772773
)

0 commit comments

Comments
 (0)