File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -384,7 +384,7 @@ impl LotDisposalKind {
384384 LotDisposalKind :: Other { .. }
385385 | LotDisposalKind :: Swap { .. }
386386 | LotDisposalKind :: WithdrawalFee { .. }
387- | LotDisposalKind :: Fiat { .. } => None ,
387+ | LotDisposalKind :: Fiat => None ,
388388 }
389389 }
390390}
@@ -685,9 +685,8 @@ impl DbData {
685685 fn load ( filename : & Path ) -> io:: Result < Self > {
686686 let bytes = fs:: read ( filename) ?;
687687
688- serde_json:: from_str ( std:: str:: from_utf8 ( & bytes) . expect ( "invalid utf8" ) ) . map_err ( |err| {
689- io:: Error :: new ( io:: ErrorKind :: Other , format ! ( "JSON parse failed: {err:?}" ) )
690- } )
688+ serde_json:: from_str ( std:: str:: from_utf8 ( & bytes) . expect ( "invalid utf8" ) )
689+ . map_err ( |err| io:: Error :: other ( format ! ( "JSON parse failed: {err:?}" ) ) )
691690 }
692691
693692 fn save ( & self , filename : & Path ) -> io:: Result < ( ) > {
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ pub enum LendingError {
77
88#[ allow( clippy:: assign_op_pattern) ]
99#[ allow( clippy:: reversed_empty_ranges) ]
10+ #[ allow( clippy:: manual_div_ceil) ]
1011mod uint_types {
1112 use uint:: construct_uint;
1213 construct_uint ! {
Original file line number Diff line number Diff line change @@ -21,6 +21,7 @@ use std::{convert::TryFrom, fmt};
2121use uint:: construct_uint;
2222
2323// U192 with 192 bits consisting of 3 x 64-bit words
24+ #[ allow( clippy:: manual_div_ceil) ]
2425construct_uint ! {
2526 pub struct U192 ( 3 ) ;
2627}
Original file line number Diff line number Diff line change @@ -27,6 +27,7 @@ use std::{convert::TryFrom, fmt};
2727use uint:: construct_uint;
2828
2929// U128 with 128 bits consisting of 2 x 64-bit words
30+ #[ allow( clippy:: manual_div_ceil) ]
3031construct_uint ! {
3132 pub struct U128 ( 2 ) ;
3233}
You can’t perform that action at this time.
0 commit comments