@@ -315,9 +315,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
315
315
offset : u64 ,
316
316
) -> InterpResult < ' tcx , RwLockId > {
317
317
let this = self . eval_context_mut ( ) ;
318
- this. rwlock_get_or_create (
319
- |ecx, next_id| Ok ( ecx. get_or_create_id ( next_id, lock_op, offset) ?) ,
320
- )
318
+ this. rwlock_get_or_create ( |ecx, next_id| ecx. get_or_create_id ( next_id, lock_op, offset) )
321
319
}
322
320
323
321
fn condvar_get_or_create_id (
@@ -326,9 +324,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
326
324
offset : u64 ,
327
325
) -> InterpResult < ' tcx , CondvarId > {
328
326
let this = self . eval_context_mut ( ) ;
329
- this. condvar_get_or_create ( |ecx, next_id| {
330
- Ok ( ecx. get_or_create_id ( next_id, lock_op, offset) ?)
331
- } )
327
+ this. condvar_get_or_create ( |ecx, next_id| ecx. get_or_create_id ( next_id, lock_op, offset) )
332
328
}
333
329
334
330
fn init_once_get_or_create_id (
@@ -337,9 +333,7 @@ pub trait EvalContextExt<'mir, 'tcx: 'mir>: crate::MiriInterpCxExt<'mir, 'tcx> {
337
333
offset : u64 ,
338
334
) -> InterpResult < ' tcx , InitOnceId > {
339
335
let this = self . eval_context_mut ( ) ;
340
- this. init_once_get_or_create ( |ecx, next_id| {
341
- Ok ( ecx. get_or_create_id ( next_id, lock_op, offset) ?)
342
- } )
336
+ this. init_once_get_or_create ( |ecx, next_id| ecx. get_or_create_id ( next_id, lock_op, offset) )
343
337
}
344
338
345
339
#[ inline]
0 commit comments