Skip to content

Commit

Permalink
Fix clippy warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
sosthene-nitrokey committed Jan 31, 2025
1 parent 103d6a5 commit 5bc1bce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
3 changes: 2 additions & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,9 @@ virt = ["std"]

log-all = []
log-none = []
log-info = []
log-trace = []
log-debug = []
log-info = []
log-warn = []
log-error = []

Expand Down
4 changes: 2 additions & 2 deletions src/service/attest.rs
Original file line number Diff line number Diff line change
Expand Up @@ -439,10 +439,10 @@ impl Encodable for Name<'_> {
l += 0xD;
}
if let Some(organization) = self.organization {
l += 11 + organization.as_bytes().len() as u16;
l += 11 + organization.len() as u16;
}
if let Some(state) = self.state {
l += 11 + state.as_bytes().len() as u16;
l += 11 + state.len() as u16;
}
Ok(l.into())
}
Expand Down

0 comments on commit 5bc1bce

Please sign in to comment.