Skip to content

Commit 9dc7f13

Browse files
committed
Remove unnecessary import of crate::marker in std::sys_common::remutex.
It was used for marker::Send, but Send is already in scope.
1 parent 2bc5d44 commit 9dc7f13

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

library/std/src/sys_common/remutex.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
mod tests;
33

44
use crate::fmt;
5-
use crate::marker;
65
use crate::ops::Deref;
76
use crate::panic::{RefUnwindSafe, UnwindSafe};
87
use crate::sys::mutex as sys;
@@ -40,7 +39,7 @@ pub struct ReentrantMutexGuard<'a, T: 'a> {
4039
lock: &'a ReentrantMutex<T>,
4140
}
4241

43-
impl<T> !marker::Send for ReentrantMutexGuard<'_, T> {}
42+
impl<T> !Send for ReentrantMutexGuard<'_, T> {}
4443

4544
impl<T> ReentrantMutex<T> {
4645
/// Creates a new reentrant mutex in an unlocked state.

0 commit comments

Comments
 (0)