Skip to content

Commit fe49122

Browse files
committed
refactor(core): ignore the unused_unit lint for macro-generated code
1 parent eb6d20f commit fe49122

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/r3_core/src/bind.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -767,6 +767,7 @@ macro_rules! impl_unzip_bind_for_tuples {
767767

768768
fn unzip(self) -> Self::Target {
769769
#[allow(unused_unsafe)] // for `Bind<'_, _, ()>`
770+
#[allow(clippy::unused_unit)] // for `Bind<'_, _, ()>`
770771
unsafe {
771772
let divide = DivideBind::new(self);
772773
let hunk = divide.original_hunk();
@@ -1746,6 +1747,7 @@ macro_rules! impl_binder_on_tuples {
17461747
let _ = ctx;
17471748
}
17481749

1750+
#[allow(clippy::unused_unit)]
17491751
fn into_runtime_binder(self) -> Self::Runtime {
17501752
( $( self.$I.into_runtime_binder(), )* )
17511753
}
@@ -1759,6 +1761,7 @@ macro_rules! impl_binder_on_tuples {
17591761

17601762
#[allow(unused_unsafe)]
17611763
#[allow(unused_variables)]
1764+
#[allow(clippy::unused_unit)]
17621765
#[inline]
17631766
unsafe fn materialize<'call>(self) -> Self::Target<'call> {
17641767
unsafe {

0 commit comments

Comments
 (0)