File tree Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Expand file tree Collapse file tree 3 files changed +7
-1
lines changed Original file line number Diff line number Diff line change 11[package ]
22name = " byte-unit"
3- version = " 5.1.4 "
3+ version = " 5.1.5 "
44authors = [
" Magic Len <[email protected] >" ]
55edition = " 2021"
66rust-version = " 1.69"
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ impl From<u8> for Bit {
4141}
4242
4343impl From < usize > for Bit {
44+ #[ allow( unexpected_cfgs) ]
4445 #[ inline]
4546 fn from ( value : usize ) -> Self {
4647 #[ cfg( target_pointer_width = "128" ) ]
@@ -103,6 +104,7 @@ impl TryFrom<i8> for Bit {
103104impl TryFrom < isize > for Bit {
104105 type Error = ExceededBoundsError ;
105106
107+ #[ allow( unexpected_cfgs) ]
106108 #[ inline]
107109 fn try_from ( value : isize ) -> Result < Self , Self :: Error > {
108110 #[ cfg( target_pointer_width = "128" ) ]
@@ -179,6 +181,7 @@ impl TryFrom<Bit> for u8 {
179181impl TryFrom < Bit > for usize {
180182 type Error = TryFromIntError ;
181183
184+ #[ allow( unexpected_cfgs) ]
182185 #[ inline]
183186 fn try_from ( bit : Bit ) -> Result < Self , Self :: Error > {
184187 #[ cfg( target_pointer_width = "128" ) ]
Original file line number Diff line number Diff line change @@ -41,6 +41,7 @@ impl From<u8> for Byte {
4141}
4242
4343impl From < usize > for Byte {
44+ #[ allow( unexpected_cfgs) ]
4445 #[ inline]
4546 fn from ( value : usize ) -> Self {
4647 #[ cfg( target_pointer_width = "128" ) ]
@@ -103,6 +104,7 @@ impl TryFrom<i8> for Byte {
103104impl TryFrom < isize > for Byte {
104105 type Error = ExceededBoundsError ;
105106
107+ #[ allow( unexpected_cfgs) ]
106108 #[ inline]
107109 fn try_from ( value : isize ) -> Result < Self , Self :: Error > {
108110 #[ cfg( target_pointer_width = "128" ) ]
@@ -179,6 +181,7 @@ impl TryFrom<Byte> for u8 {
179181impl TryFrom < Byte > for usize {
180182 type Error = TryFromIntError ;
181183
184+ #[ allow( unexpected_cfgs) ]
182185 #[ inline]
183186 fn try_from ( byte : Byte ) -> Result < Self , Self :: Error > {
184187 #[ cfg( target_pointer_width = "128" ) ]
You can’t perform that action at this time.
0 commit comments