Skip to content

Commit

Permalink
clippy fix
Browse files Browse the repository at this point in the history
  • Loading branch information
labbott committed Oct 8, 2024
1 parent 92df783 commit 634fe9e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion dice-cert-tmpl/src/cert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type Result<T> = result::Result<T, MissingFieldError>;

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

impl<'a> fmt::Display for Cert<'a> {
impl fmt::Display for Cert<'_> {
fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
crate::arrayfmt(self.as_bytes(), f)
}
Expand Down
2 changes: 1 addition & 1 deletion dice-cert-tmpl/src/csr.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ type Result<T> = result::Result<T, MissingFieldError>;
// Type to expose parsing operations on CSR in underlying slice
pub struct Csr<'a>(&'a mut [u8]);

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

0 comments on commit 634fe9e

Please sign in to comment.