Skip to content

Commit 6842604

Browse files
committed
remove unnecessary returns
1 parent 3fa42d6 commit 6842604

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/sync.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)