File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -512,7 +512,7 @@ impl<T> EnteredCriticalSection<'_, T> {
512512 /// objects may call back into the interpreter in a blocking manner because
513513 /// many C API calls can trigger the execution of arbitrary Python code.
514514 pub unsafe fn get_mut ( & mut self ) -> & mut T {
515- return unsafe { & mut * ( self . 0 . get ( ) ) } ;
515+ unsafe { & mut * ( self . 0 . get ( ) ) }
516516 }
517517
518518 /// Get a immutable reference to the value wrapped by a PyMutex
@@ -531,7 +531,7 @@ impl<T> EnteredCriticalSection<'_, T> {
531531 /// objects may call back into the interpreter in a blocking manner because
532532 /// many C API calls can trigger the execution of arbitrary Python code.
533533 pub unsafe fn get ( & self ) -> & T {
534- return unsafe { & * ( self . 0 . get ( ) ) } ;
534+ unsafe { & * ( self . 0 . get ( ) ) }
535535 }
536536}
537537
You can’t perform that action at this time.
0 commit comments