File tree 1 file changed +2
-8
lines changed
1 file changed +2
-8
lines changed Original file line number Diff line number Diff line change @@ -331,10 +331,7 @@ where
331
331
DebugVerbosity :: AllScopes ,
332
332
"DefIncrement" ,
333
333
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 ( ) ;
338
335
let value = try_with_context ! ( context, value. as_integer( context) ) ;
339
336
let new_value = AmlValue :: Integer ( value + 1 ) ;
340
337
try_with_context ! ( context, context. store( addend, new_value. clone( ) ) ) ;
@@ -356,10 +353,7 @@ where
356
353
DebugVerbosity :: AllScopes ,
357
354
"DefDecrement" ,
358
355
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 ( ) ;
363
357
let value = try_with_context ! ( context, value. as_integer( context) ) ;
364
358
let new_value = AmlValue :: Integer ( value - 1 ) ;
365
359
try_with_context ! ( context, context. store( minuend, new_value. clone( ) ) ) ;
You can’t perform that action at this time.
0 commit comments