File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
src/message/amqp/types/primitives Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ ordered-float = "4.1.0"
1616uuid = " 1"
1717chrono = " 0.4.26"
1818num_enum = " 0.7.0"
19- derive_more = " 0.99 "
19+ derive_more = { version = " 2.0.1 " , features = [ " full " ] }
2020
2121[dev-dependencies ]
2222pretty_assertions = " 1.2.0"
Original file line number Diff line number Diff line change @@ -180,9 +180,9 @@ macro_rules! impl_try_from_simple_value_ref {
180180 fn try_from( value: & ' a Value ) -> Result <Self , Self :: Error > {
181181 use std:: convert:: TryInto ;
182182 match value {
183- Value :: Simple ( simple) => simple
184- . try_into ( )
185- . map_err ( |err : & str | DecodeError :: MessageParse ( err . to_string ( ) ) ) ,
183+ Value :: Simple ( simple) => simple. try_into ( ) . map_err ( |_| {
184+ DecodeError :: MessageParse ( "Failed to cast Value to simple type" . to_string ( ) )
185+ } ) ,
186186 _ => Err ( DecodeError :: MessageParse (
187187 "Failed to cast Value to simple type" . to_string( ) ,
188188 ) ) ,
You can’t perform that action at this time.
0 commit comments