diff --git a/rs-matter/src/cert/mod.rs b/rs-matter/src/cert/mod.rs index 0bbf00fe..fb23f1a2 100644 --- a/rs-matter/src/cert/mod.rs +++ b/rs-matter/src/cert/mod.rs @@ -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)) diff --git a/rs-matter/src/mdns/proto.rs b/rs-matter/src/mdns/proto.rs index 2ba952dd..dbe3794f 100644 --- a/rs-matter/src/mdns/proto.rs +++ b/rs-matter/src/mdns/proto.rs @@ -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())?; }