Skip to content

Commit bf3eeb6

Browse files
committed
fix: silence some unneded warnings in generated code
1 parent 871cf88 commit bf3eeb6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/macros.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1005,6 +1005,7 @@ macro_rules! __pin_data {
10051005
) => {
10061006
$crate::macros::paste! {
10071007
#[doc(hidden)]
1008+
#[allow(dead_code)]
10081009
$vis struct [< $name Projection >] <'__pin, $($decl_generics)*> {
10091010
$($(#[$($p_attr)*])* $pvis $p_field : ::core::pin::Pin<&'__pin mut $p_type>,)*
10101011
$($(#[$($attr)*])* $fvis $field : &'__pin mut $type,)*
@@ -1083,6 +1084,7 @@ macro_rules! __pin_data {
10831084
)*
10841085
$(
10851086
$(#[$($attr)*])*
1087+
#[allow(non_snake_case)]
10861088
$fvis unsafe fn $field<E>(
10871089
self,
10881090
slot: *mut $type,
@@ -1093,6 +1095,7 @@ macro_rules! __pin_data {
10931095
}
10941096

10951097
$(#[$($attr)*])*
1098+
#[allow(non_snake_case)]
10961099
$fvis unsafe fn [<__project_ $field>]<'__slot>(
10971100
self,
10981101
slot: &'__slot mut $type,

0 commit comments

Comments
 (0)