Skip to content

Commit 99d91e9

Browse files
committed
Relax the clippy checks in CI, address a lint warning
1 parent af1202f commit 99d91e9

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

.github/workflows/rust.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,6 +106,5 @@ jobs:
106106
- uses: actions-rs/cargo@v1
107107
with:
108108
command: clippy
109-
# `identity_op` and `or_fun_call` may lead to false positives
110109
# `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

espflash/src/partition_table.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -739,7 +739,7 @@ where
739739
let buf = String::deserialize(deserializer)?;
740740
let buf = buf.trim();
741741

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"))
743743
}
744744

745745
fn deserialize_partition_offset_or_size<'de, D>(deserializer: D) -> Result<Option<u32>, D::Error>

0 commit comments

Comments
 (0)