Skip to content

Commit

Permalink
fix clippy
Browse files Browse the repository at this point in the history
I'm not sure what caused this to fail. Changes in clippy?
  • Loading branch information
trinity-1686a authored and bluejekyll committed May 9, 2021
1 parent 1f5d060 commit 6c672f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion crates/client/src/serialize/txt/rdata_parsers/caa.rs
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ pub(crate) fn parse<'i, I: Iterator<Item = &'i str>>(mut tokens: I) -> ParseResu

// parse the flags
let issuer_critical = {
let flags = u8::from_str_radix(flags_str, 10)?;
let flags = flags_str.parse::<u8>()?;
if flags & 0b0111_1111 != 0 {
warn!("unexpected flag values in caa (0 or 128): {}", flags);
}
Expand Down
2 changes: 1 addition & 1 deletion crates/client/src/serialize/txt/rdata_parsers/tlsa.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ use crate::rr::rdata::tlsa::CertUsage;
use crate::rr::rdata::{sshfp, TLSA};

fn to_u8(data: &str) -> ParseResult<u8> {
u8::from_str_radix(data, 10).map_err(ParseError::from)
data.parse::<u8>().map_err(ParseError::from)
}

/// Parse the RData from a set of Tokens
Expand Down

0 comments on commit 6c672f2

Please # to comment.