@@ -37,8 +37,7 @@ fn consume<A: Deserial>(bytes: &[u8]) -> Result<A, tonic::Status> {
3737 match res {
3838 Ok ( v) if cursor. position ( ) == bytes. len ( ) as u64 => Ok ( v) ,
3939 Err ( e) => Err ( tonic:: Status :: internal ( format ! (
40- "Could not deserialize response: {}" ,
41- e
40+ "Could not deserialize response: {e}"
4241 ) ) ) ,
4342 Ok ( _) => Err ( tonic:: Status :: internal (
4443 "Could not deserialize response: trailing bytes" ,
@@ -48,6 +47,7 @@ fn consume<A: Deserial>(bytes: &[u8]) -> Result<A, tonic::Status> {
4847
4948/// Convert from the 0-based protobuf representation to the 1-based internal
5049/// representation of a [ProtocolVersionInt].
50+ #[ allow( clippy:: result_large_err) ]
5151fn protocol_version_int_from_enum ( tag_number : i32 ) -> Result < ProtocolVersionInt , tonic:: Status > {
5252 if tag_number < 0 {
5353 Err ( tonic:: Status :: internal ( format ! (
@@ -2273,7 +2273,7 @@ impl TryFrom<baker_event::Event> for super::types::BakerEvent {
22732273 baker_event:: Event :: BakerSetMetadataUrl ( v) => Self :: BakerSetMetadataURL {
22742274 baker_id : v. baker_id . require ( ) ?. into ( ) ,
22752275 metadata_url : v. url . try_into ( ) . map_err ( |e| {
2276- tonic:: Status :: invalid_argument ( format ! ( "Invalid argument: {}" , e ) )
2276+ tonic:: Status :: invalid_argument ( format ! ( "Invalid argument: {e}" ) )
22772277 } ) ?,
22782278 } ,
22792279 baker_event:: Event :: BakerSetTransactionFeeCommission ( v) => {
@@ -2317,7 +2317,7 @@ impl TryFrom<RegisteredData> for super::types::RegisteredData {
23172317 value
23182318 . value
23192319 . try_into ( )
2320- . map_err ( |e| tonic:: Status :: invalid_argument ( format ! ( "{}" , e ) ) )
2320+ . map_err ( |e| tonic:: Status :: invalid_argument ( format ! ( "{e}" ) ) )
23212321 }
23222322}
23232323
@@ -3443,6 +3443,7 @@ impl TryFrom<block_special_event::AccountAmounts>
34433443{
34443444 type Error = tonic:: Status ;
34453445
3446+ #[ allow( clippy:: result_large_err) ]
34463447 fn try_from ( message : block_special_event:: AccountAmounts ) -> Result < Self , Self :: Error > {
34473448 fn mapper (
34483449 entry : block_special_event:: account_amounts:: Entry ,
0 commit comments