diff options
| author | Mara Bos <m-ou.se@m-ou.se> | 2020-10-10 20:15:55 +0200 |
|---|---|---|
| committer | Mara Bos <m-ou.se@m-ou.se> | 2020-12-08 22:57:49 +0100 |
| commit | 9dc7f13c39febc6466c8f79ad4c270ab8a63881f (patch) | |
| tree | 625e4279738b68cbfc3da237133728da3d1a541e | |
| parent | 2bc5d44ca963a4dccf09c993fe9813f6a795aedf (diff) | |
| download | rust-9dc7f13c39febc6466c8f79ad4c270ab8a63881f.tar.gz rust-9dc7f13c39febc6466c8f79ad4c270ab8a63881f.zip | |
Remove unnecessary import of `crate::marker` in std::sys_common::remutex.
It was used for marker::Send, but Send is already in scope.
| -rw-r--r-- | library/std/src/sys_common/remutex.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/library/std/src/sys_common/remutex.rs b/library/std/src/sys_common/remutex.rs index 162eab2388d..35d6701efd0 100644 --- a/library/std/src/sys_common/remutex.rs +++ b/library/std/src/sys_common/remutex.rs @@ -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. |
