Skip to content

Commit

Permalink
Fix errors reported by latest Clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
ivmarkov committed Sep 14, 2024
1 parent 1e0117b commit 09affe2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
16 changes: 8 additions & 8 deletions rs-matter/src/cert/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -805,14 +805,14 @@ impl<'a> CertVerifier<'a> {
let asn1 = &asn1[..len];

let k = KeyPair::new_from_public(parent.get_pubkey())?;
k.verify_msg(asn1, self.cert.get_signature()).map_err(|e| {
error!(
"Error in signature verification of certificate: {:x?} by {:x?}",
self.cert.get_subject_key_id(),
parent.get_subject_key_id()
);
e
})?;
k.verify_msg(asn1, self.cert.get_signature())
.inspect_err(|e| {
error!(
"Error {e} in signature verification of certificate: {:x?} by {:x?}",
self.cert.get_subject_key_id(),
parent.get_subject_key_id()
);
})?;

// TODO: other validation checks
Ok(CertVerifier::new(parent))
Expand Down
2 changes: 1 addition & 1 deletion rs-matter/src/mdns/proto.rs
Original file line number Diff line number Diff line change
Expand Up @@ -586,7 +586,7 @@ impl<'a> Service<'a> {
for (k, v) in self.txt_kvs {
octets.append_slice(&[(k.len() + v.len() + 1) as u8])?;
octets.append_slice(k.as_bytes())?;
octets.append_slice(&[b'='])?;
octets.append_slice(b"=")?;
octets.append_slice(v.as_bytes())?;
}

Expand Down

0 comments on commit 09affe2

Please sign in to comment.