@@ -290,7 +290,7 @@ impl TryFrom<SdkTweak> for Tweak {
290290 SdkTweak :: Highlight ( highlight) => Self :: Highlight { value : highlight } ,
291291 SdkTweak :: Custom { name, value } => {
292292 let json_string = serde_json:: to_string ( & value)
293- . map_err ( |e| format ! ( "Failed to serialize custom tweak value: {}" , e ) ) ?;
293+ . map_err ( |e| format ! ( "Failed to serialize custom tweak value: {e}" ) ) ?;
294294
295295 Self :: Custom { name, value : json_string }
296296 }
@@ -308,9 +308,9 @@ impl TryFrom<Tweak> for SdkTweak {
308308 Tweak :: Highlight { value } => Self :: Highlight ( value) ,
309309 Tweak :: Custom { name, value } => {
310310 let json_value: serde_json:: Value = serde_json:: from_str ( & value)
311- . map_err ( |e| format ! ( "Failed to deserialize custom tweak value: {}" , e ) ) ?;
311+ . map_err ( |e| format ! ( "Failed to deserialize custom tweak value: {e}" ) ) ?;
312312 let value = serde_json:: from_value ( json_value)
313- . map_err ( |e| format ! ( "Failed to convert JSON value: {}" , e ) ) ?;
313+ . map_err ( |e| format ! ( "Failed to convert JSON value: {e}" ) ) ?;
314314
315315 Self :: Custom { name, value }
316316 }
@@ -334,7 +334,7 @@ impl TryFrom<SdkAction> for Action {
334334 Ok ( match value {
335335 SdkAction :: Notify => Self :: Notify ,
336336 SdkAction :: SetTweak ( tweak) => Self :: SetTweak {
337- value : tweak. try_into ( ) . map_err ( |e| format ! ( "Failed to convert tweak: {}" , e ) ) ?,
337+ value : tweak. try_into ( ) . map_err ( |e| format ! ( "Failed to convert tweak: {e}" ) ) ?,
338338 } ,
339339 _ => return Err ( "Unsupported action type" . to_owned ( ) ) ,
340340 } )
@@ -348,7 +348,7 @@ impl TryFrom<Action> for SdkAction {
348348 Ok ( match value {
349349 Action :: Notify => Self :: Notify ,
350350 Action :: SetTweak { value } => Self :: SetTweak (
351- value. try_into ( ) . map_err ( |e| format ! ( "Failed to convert tweak: {}" , e ) ) ?,
351+ value. try_into ( ) . map_err ( |e| format ! ( "Failed to convert tweak: {e}" ) ) ?,
352352 ) ,
353353 } )
354354 }
0 commit comments