File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff 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" ,
Original file line number Diff line number Diff 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 }
You can’t perform that action at this time.
0 commit comments