Skip to content

Commit bc43a22

Browse files
committed
Fix warnings
1 parent 79e1ee2 commit bc43a22

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/prim_int.rs

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ macro_rules! gen {
3535
use core::num::NonZero;
3636

3737
pub(crate) type Unsigned = $unsigned;
38+
#[allow(unused)] // only needed for non-u8
3839
pub(crate) type Signed = $signed;
40+
#[allow(unused)] // only needed for non-u8
3941
pub(crate) use super::$signed as signed;
4042

4143
pub(crate) const fn checked_add_unsigned(lhs: Unsigned, rhs: Unsigned) -> Option<Unsigned> {
@@ -52,7 +54,9 @@ macro_rules! gen {
5254
use core::num::NonZero;
5355

5456
pub(crate) type Unsigned = $unsigned;
57+
#[allow(unused)] // only needed for non-u8
5558
pub(crate) type Signed = $signed;
59+
#[allow(unused)] // only needed for non-u8
5660
pub(crate) use super::$signed as signed;
5761

5862
pub(crate) const fn checked_add_unsigned(lhs: Signed, rhs: Unsigned) -> Option<Signed> {

0 commit comments

Comments
 (0)