Skip to content

Commit 5f5aee4

Browse files
committed
Fix more clippy warnings
1 parent 8151bef commit 5f5aee4

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎src/config.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ fn default_toolchain_cache_size() -> u64 {
7171

7272
struct StringOrU64Visitor;
7373

74-
impl<'de> de::Visitor<'de> for StringOrU64Visitor {
74+
impl de::Visitor<'_> for StringOrU64Visitor {
7575
type Value = u64;
7676

7777
fn expecting(&self, formatter: &mut fmt::Formatter<'_>) -> fmt::Result {

‎src/util.rs‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -992,7 +992,7 @@ pub fn ascii_unescape_default(s: &[u8]) -> std::io::Result<Vec<u8>> {
992992
"incomplete hex escape",
993993
));
994994
}
995-
let v = unhex(s[offset])? << 4 | unhex(s[offset + 1])?;
995+
let v = (unhex(s[offset])? << 4) | unhex(s[offset + 1])?;
996996
out.push(v);
997997
offset += 1;
998998
}

0 commit comments

Comments
 (0)