Skip to content

Commit

Permalink
Remove unnecessary import of crate::marker in std::sys_common::remu…
Browse files Browse the repository at this point in the history
…tex.

It was used for marker::Send, but Send is already in scope.
  • Loading branch information
m-ou-se committed Dec 8, 2020
1 parent 2bc5d44 commit 9dc7f13
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions library/std/src/sys_common/remutex.rs
Expand Up @@ -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;
Expand Down Expand Up @@ -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.
Expand Down

0 comments on commit 9dc7f13

Please sign in to comment.