Skip to content

Commit a207669

Browse files
committed
clippy fix
1 parent ae133ea commit a207669

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dice-cert-tmpl/src/cert.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ type Result<T> = result::Result<T, MissingFieldError>;
1313

1414
pub struct Cert<'a>(pub &'a mut [u8]);
1515

16-
impl<'a> fmt::Display for Cert<'a> {
16+
impl fmt::Display for Cert<'_> {
1717
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
1818
crate::arrayfmt(self.as_bytes(), f)
1919
}

dice-cert-tmpl/src/csr.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ type Result<T> = result::Result<T, MissingFieldError>;
1313
// Type to expose parsing operations on CSR in underlying slice
1414
pub struct Csr<'a>(&'a mut [u8]);
1515

16-
impl<'a> fmt::Display for Csr<'a> {
16+
impl fmt::Display for Csr<'_> {
1717
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
1818
crate::arrayfmt(self.as_bytes(), f)
1919
}

0 commit comments

Comments
 (0)