Skip to content

Commit 51d89cb

Browse files
committed
Fix clippy warning
1 parent a67bfbc commit 51d89cb

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

concordium-node/src/consensus_ffi/ffi.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2383,7 +2383,7 @@ impl ConsensusContainer {
23832383
use crate::grpc2::Require;
23842384
let bhi = crate::grpc2::types::block_hash_input_to_ffi(block_hash).require()?;
23852385
let (block_id_type, block_hash) = bhi.to_ptr();
2386-
let token_id_len = token_id.value.as_bytes().len();
2386+
let token_id_len = token_id.value.len();
23872387
if token_id_len > 255 {
23882388
return Err(tonic::Status::invalid_argument(
23892389
"TokenId: length must be at most 255 bytes",

concordium-node/src/health.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ enum ServiceError<'a> {
5151
ServiceNotFound { service: &'a str },
5252
}
5353

54-
impl<'a> ServiceError<'a> {
54+
impl ServiceError<'_> {
5555
pub fn is_not_found(&self) -> bool {
5656
matches!(self, Self::ServiceNotFound { .. })
5757
}

0 commit comments

Comments
 (0)