File tree 3 files changed +7
-1
lines changed 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 1
1
[package ]
2
2
name = " byte-unit"
3
- version = " 5.1.4 "
3
+ version = " 5.1.5 "
4
4
authors = [
" Magic Len <[email protected] >" ]
5
5
edition = " 2021"
6
6
rust-version = " 1.69"
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ impl From<u8> for Bit {
41
41
}
42
42
43
43
impl From < usize > for Bit {
44
+ #[ allow( unexpected_cfgs) ]
44
45
#[ inline]
45
46
fn from ( value : usize ) -> Self {
46
47
#[ cfg( target_pointer_width = "128" ) ]
@@ -103,6 +104,7 @@ impl TryFrom<i8> for Bit {
103
104
impl TryFrom < isize > for Bit {
104
105
type Error = ExceededBoundsError ;
105
106
107
+ #[ allow( unexpected_cfgs) ]
106
108
#[ inline]
107
109
fn try_from ( value : isize ) -> Result < Self , Self :: Error > {
108
110
#[ cfg( target_pointer_width = "128" ) ]
@@ -179,6 +181,7 @@ impl TryFrom<Bit> for u8 {
179
181
impl TryFrom < Bit > for usize {
180
182
type Error = TryFromIntError ;
181
183
184
+ #[ allow( unexpected_cfgs) ]
182
185
#[ inline]
183
186
fn try_from ( bit : Bit ) -> Result < Self , Self :: Error > {
184
187
#[ cfg( target_pointer_width = "128" ) ]
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ impl From<u8> for Byte {
41
41
}
42
42
43
43
impl From < usize > for Byte {
44
+ #[ allow( unexpected_cfgs) ]
44
45
#[ inline]
45
46
fn from ( value : usize ) -> Self {
46
47
#[ cfg( target_pointer_width = "128" ) ]
@@ -103,6 +104,7 @@ impl TryFrom<i8> for Byte {
103
104
impl TryFrom < isize > for Byte {
104
105
type Error = ExceededBoundsError ;
105
106
107
+ #[ allow( unexpected_cfgs) ]
106
108
#[ inline]
107
109
fn try_from ( value : isize ) -> Result < Self , Self :: Error > {
108
110
#[ cfg( target_pointer_width = "128" ) ]
@@ -179,6 +181,7 @@ impl TryFrom<Byte> for u8 {
179
181
impl TryFrom < Byte > for usize {
180
182
type Error = TryFromIntError ;
181
183
184
+ #[ allow( unexpected_cfgs) ]
182
185
#[ inline]
183
186
fn try_from ( byte : Byte ) -> Result < Self , Self :: Error > {
184
187
#[ cfg( target_pointer_width = "128" ) ]
You can’t perform that action at this time.
0 commit comments