Skip to content

Commit

Permalink
Merge pull request project-chip#204 from ivmarkov/fix-clippy-errs
Browse files Browse the repository at this point in the history
Fix errors reported by latest Clippy
  • Loading branch information
kedars authored Sep 14, 2024
2 parents 1e0117b + a9a2cfd commit 2dc8cff
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci-tlv-tool.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ jobs:
working-directory: tools/tlv

- name: Archive artifacts
uses: actions/upload-artifact@v2
uses: actions/upload-artifact@v4
with:
name: tlv
path: tools/tlv/target/debug/tlv
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 2dc8cff

Please sign in to comment.