Skip to content

Commit 5bc1bce

Browse files
Fix clippy warnings
1 parent 103d6a5 commit 5bc1bce

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,8 +90,9 @@ virt = ["std"]
9090

9191
log-all = []
9292
log-none = []
93-
log-info = []
93+
log-trace = []
9494
log-debug = []
95+
log-info = []
9596
log-warn = []
9697
log-error = []
9798

src/service/attest.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -439,10 +439,10 @@ impl Encodable for Name<'_> {
439439
l += 0xD;
440440
}
441441
if let Some(organization) = self.organization {
442-
l += 11 + organization.as_bytes().len() as u16;
442+
l += 11 + organization.len() as u16;
443443
}
444444
if let Some(state) = self.state {
445-
l += 11 + state.as_bytes().len() as u16;
445+
l += 11 + state.len() as u16;
446446
}
447447
Ok(l.into())
448448
}

0 commit comments

Comments
 (0)