File tree Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Expand file tree Collapse file tree 1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -331,10 +331,7 @@ where
331331 DebugVerbosity :: AllScopes ,
332332 "DefIncrement" ,
333333 super_name ( ) . map_with_context ( |addend, context| {
334- let value = {
335- let value = try_with_context ! ( context, context. read_target( & addend) ) ;
336- value. clone ( )
337- } ;
334+ let value = try_with_context ! ( context, context. read_target( & addend) ) . clone ( ) ;
338335 let value = try_with_context ! ( context, value. as_integer( context) ) ;
339336 let new_value = AmlValue :: Integer ( value + 1 ) ;
340337 try_with_context ! ( context, context. store( addend, new_value. clone( ) ) ) ;
@@ -356,10 +353,7 @@ where
356353 DebugVerbosity :: AllScopes ,
357354 "DefDecrement" ,
358355 super_name ( ) . map_with_context ( |minuend, context| {
359- let value = {
360- let value = try_with_context ! ( context, context. read_target( & minuend) ) ;
361- value. clone ( )
362- } ;
356+ let value = try_with_context ! ( context, context. read_target( & minuend) ) . clone ( ) ;
363357 let value = try_with_context ! ( context, value. as_integer( context) ) ;
364358 let new_value = AmlValue :: Integer ( value - 1 ) ;
365359 try_with_context ! ( context, context. store( minuend, new_value. clone( ) ) ) ;
You can’t perform that action at this time.
0 commit comments