File tree Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Expand file tree Collapse file tree 2 files changed +2
-3
lines changed Original file line number Diff line number Diff line change @@ -106,6 +106,5 @@ jobs:
106
106
- uses : actions-rs/cargo@v1
107
107
with :
108
108
command : clippy
109
- # `identity_op` and `or_fun_call` may lead to false positives
110
109
# `too_many_arguments` is relatively arbitrary
111
- args : -- -D warnings -A clippy::identity_op -A clippy::or_fun_call - A clippy::too_many_arguments
110
+ args : -- -A clippy::too_many_arguments
Original file line number Diff line number Diff line change @@ -739,7 +739,7 @@ where
739
739
let buf = String :: deserialize ( deserializer) ?;
740
740
let buf = buf. trim ( ) ;
741
741
742
- parse_int:: parse :: < u8 > ( buf) . or ( Err ( Error :: custom ( "invalid data sub-type" ) ) )
742
+ parse_int:: parse :: < u8 > ( buf) . map_err ( |_| Error :: custom ( "invalid data sub-type" ) )
743
743
}
744
744
745
745
fn deserialize_partition_offset_or_size < ' de , D > ( deserializer : D ) -> Result < Option < u32 > , D :: Error >
You can’t perform that action at this time.
0 commit comments