sed -i -s 's/\bmod,/self,/g' **/*.rs
This commit is contained in:
@@ -104,7 +104,7 @@ pub use core::atomic::{AtomicBool, AtomicInt, AtomicUint, AtomicPtr};
|
||||
pub use core::atomic::{INIT_ATOMIC_BOOL, INIT_ATOMIC_INT, INIT_ATOMIC_UINT};
|
||||
pub use core::atomic::{ATOMIC_BOOL_INIT, ATOMIC_INT_INIT, ATOMIC_UINT_INIT};
|
||||
pub use core::atomic::fence;
|
||||
pub use core::atomic::Ordering::{mod, Relaxed, Release, Acquire, AcqRel, SeqCst};
|
||||
pub use core::atomic::Ordering::{self, Relaxed, Release, Acquire, AcqRel, SeqCst};
|
||||
|
||||
/// An atomic, nullable unique pointer
|
||||
///
|
||||
|
||||
@@ -10,8 +10,8 @@
|
||||
|
||||
use prelude::v1::*;
|
||||
|
||||
use sync::atomic::{mod, AtomicUint};
|
||||
use sync::poison::{mod, LockResult};
|
||||
use sync::atomic::{self, AtomicUint};
|
||||
use sync::poison::{self, LockResult};
|
||||
use sys_common::condvar as sys;
|
||||
use sys_common::mutex as sys_mutex;
|
||||
use time::Duration;
|
||||
|
||||
@@ -40,7 +40,7 @@ use self::MyUpgrade::*;
|
||||
use core::prelude::*;
|
||||
|
||||
use sync::mpsc::Receiver;
|
||||
use sync::mpsc::blocking::{mod, SignalToken};
|
||||
use sync::mpsc::blocking::{self, SignalToken};
|
||||
use core::mem;
|
||||
use sync::atomic;
|
||||
|
||||
|
||||
@@ -62,7 +62,7 @@ use core::mem;
|
||||
use core::uint;
|
||||
|
||||
use sync::mpsc::{Receiver, RecvError};
|
||||
use sync::mpsc::blocking::{mod, SignalToken};
|
||||
use sync::mpsc::blocking::{self, SignalToken};
|
||||
|
||||
/// The "receiver set" of the select interface. This structure is used to manage
|
||||
/// a set of receivers which are being selected over.
|
||||
|
||||
@@ -27,7 +27,7 @@ use core::int;
|
||||
|
||||
use sync::{atomic, Mutex, MutexGuard};
|
||||
use sync::mpsc::mpsc_queue as mpsc;
|
||||
use sync::mpsc::blocking::{mod, SignalToken};
|
||||
use sync::mpsc::blocking::{self, SignalToken};
|
||||
use sync::mpsc::select::StartResult;
|
||||
use sync::mpsc::select::StartResult::*;
|
||||
use thread::Thread;
|
||||
|
||||
@@ -28,7 +28,7 @@ use core::cmp;
|
||||
use core::int;
|
||||
use thread::Thread;
|
||||
|
||||
use sync::mpsc::blocking::{mod, SignalToken};
|
||||
use sync::mpsc::blocking::{self, SignalToken};
|
||||
use sync::mpsc::spsc_queue as spsc;
|
||||
use sync::mpsc::Receiver;
|
||||
use sync::atomic;
|
||||
|
||||
@@ -42,8 +42,8 @@ use vec::Vec;
|
||||
use core::mem;
|
||||
|
||||
use sync::{atomic, Mutex, MutexGuard};
|
||||
use sync::mpsc::blocking::{mod, WaitToken, SignalToken};
|
||||
use sync::mpsc::select::StartResult::{mod, Installed, Abort};
|
||||
use sync::mpsc::blocking::{self, WaitToken, SignalToken};
|
||||
use sync::mpsc::select::StartResult::{self, Installed, Abort};
|
||||
|
||||
pub struct Packet<T> {
|
||||
/// Only field outside of the mutex. Just done for kicks, but mainly because
|
||||
|
||||
@@ -13,7 +13,7 @@ use prelude::v1::*;
|
||||
use cell::UnsafeCell;
|
||||
use kinds::marker;
|
||||
use ops::{Deref, DerefMut};
|
||||
use sync::poison::{mod, TryLockError, TryLockResult, LockResult};
|
||||
use sync::poison::{self, TryLockError, TryLockResult, LockResult};
|
||||
use sys_common::mutex as sys;
|
||||
|
||||
/// A mutual exclusion primitive useful for protecting shared data
|
||||
|
||||
@@ -13,7 +13,7 @@ use prelude::v1::*;
|
||||
use cell::UnsafeCell;
|
||||
use kinds::marker;
|
||||
use ops::{Deref, DerefMut};
|
||||
use sync::poison::{mod, LockResult, TryLockError, TryLockResult};
|
||||
use sync::poison::{self, LockResult, TryLockError, TryLockResult};
|
||||
use sys_common::rwlock as sys;
|
||||
|
||||
/// A reader-writer lock
|
||||
@@ -362,7 +362,7 @@ impl<'a, T> Drop for RWLockWriteGuard<'a, T> {
|
||||
mod tests {
|
||||
use prelude::v1::*;
|
||||
|
||||
use rand::{mod, Rng};
|
||||
use rand::{self, Rng};
|
||||
use sync::mpsc::channel;
|
||||
use thread::Thread;
|
||||
use sync::{Arc, RWLock, StaticRWLock, RWLOCK_INIT};
|
||||
|
||||
Reference in New Issue
Block a user