Remove unnecessary import of crate::marker in std::sys_common::remutex.

It was used for marker::Send, but Send is already in scope.
This commit is contained in:
Mara Bos 2020-10-10 20:15:55 +02:00
parent 2bc5d44ca9
commit 9dc7f13c39

View File

@ -2,7 +2,6 @@
mod tests;
use crate::fmt;
use crate::marker;
use crate::ops::Deref;
use crate::panic::{RefUnwindSafe, UnwindSafe};
use crate::sys::mutex as sys;
@ -40,7 +39,7 @@ pub struct ReentrantMutexGuard<'a, T: 'a> {
lock: &'a ReentrantMutex<T>,
}
impl<T> !marker::Send for ReentrantMutexGuard<'_, T> {}
impl<T> !Send for ReentrantMutexGuard<'_, T> {}
impl<T> ReentrantMutex<T> {
/// Creates a new reentrant mutex in an unlocked state.