sed -i -s 's/\bmod,/self,/g' **/*.rs
This commit is contained in:
parent
c6c786671d
commit
56dcbd17fd
178 changed files with 291 additions and 291 deletions
|
|
@ -9,7 +9,7 @@
|
|||
// except according to those terms.
|
||||
|
||||
use time::Duration;
|
||||
use sys_common::mutex::{mod, Mutex};
|
||||
use sys_common::mutex::{self, Mutex};
|
||||
use sys::condvar as imp;
|
||||
|
||||
/// An OS-based condition variable.
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
#![allow(missing_docs)]
|
||||
#![allow(dead_code)]
|
||||
|
||||
use io::{mod, IoError, IoResult};
|
||||
use io::{self, IoError, IoResult};
|
||||
use prelude::v1::*;
|
||||
use sys::{last_error, retry};
|
||||
use c_str::CString;
|
||||
|
|
|
|||
|
|
@ -16,16 +16,16 @@ use c_str::ToCStr;
|
|||
use io::net::addrinfo;
|
||||
use io::net::ip::{SocketAddr, IpAddr, Ipv4Addr, Ipv6Addr};
|
||||
use io::{IoResult, IoError};
|
||||
use libc::{mod, c_char, c_int};
|
||||
use libc::{self, c_char, c_int};
|
||||
use c_str::CString;
|
||||
use mem;
|
||||
use num::Int;
|
||||
use ptr::{mod, null, null_mut};
|
||||
use sys::{mod, retry, c, sock_t, last_error, last_net_error, last_gai_error, close_sock,
|
||||
use ptr::{self, null, null_mut};
|
||||
use sys::{self, retry, c, sock_t, last_error, last_net_error, last_gai_error, close_sock,
|
||||
wrlen, msglen_t, os, wouldblock, set_nonblocking, timer, ms_to_timeval,
|
||||
decode_error_detailed};
|
||||
use sync::{Arc, Mutex, MutexGuard};
|
||||
use sys_common::{mod, keep_going, short_write, timeout};
|
||||
use sys_common::{self, keep_going, short_write, timeout};
|
||||
use cmp;
|
||||
use io;
|
||||
|
||||
|
|
|
|||
|
|
@ -58,7 +58,7 @@
|
|||
|
||||
use prelude::v1::*;
|
||||
|
||||
use sync::atomic::{mod, AtomicUint};
|
||||
use sync::atomic::{self, AtomicUint};
|
||||
use sync::{Mutex, Once, ONCE_INIT};
|
||||
|
||||
use sys::thread_local as imp;
|
||||
|
|
|
|||
|
|
@ -87,7 +87,7 @@ use c_str::CString;
|
|||
use io::{IoResult, Writer};
|
||||
use libc;
|
||||
use mem;
|
||||
use option::Option::{mod, Some, None};
|
||||
use option::Option::{self, Some, None};
|
||||
use result::Result::{Ok, Err};
|
||||
use sync::{StaticMutex, MUTEX_INIT};
|
||||
|
||||
|
|
|
|||
|
|
@ -10,7 +10,7 @@
|
|||
|
||||
use cell::UnsafeCell;
|
||||
use libc;
|
||||
use sys::mutex::{mod, Mutex};
|
||||
use sys::mutex::{self, Mutex};
|
||||
use sys::sync as ffi;
|
||||
use time::Duration;
|
||||
|
||||
|
|
|
|||
|
|
@ -17,7 +17,7 @@ use io::{FilePermission, Write, UnstableFileStat, Open, FileAccess, FileMode};
|
|||
use io::{IoResult, FileStat, SeekStyle};
|
||||
use io::{Read, Truncate, SeekCur, SeekSet, ReadWrite, SeekEnd, Append};
|
||||
use io;
|
||||
use libc::{mod, c_int, c_void};
|
||||
use libc::{self, c_int, c_void};
|
||||
use mem;
|
||||
use sys::retry;
|
||||
use sys_common::{keep_going, eof, mkerr_libc};
|
||||
|
|
|
|||
|
|
@ -20,7 +20,7 @@ extern crate libc;
|
|||
use num;
|
||||
use num::{Int, SignedInt};
|
||||
use prelude::v1::*;
|
||||
use io::{mod, IoResult, IoError};
|
||||
use io::{self, IoResult, IoError};
|
||||
use sys_common::mkerr_libc;
|
||||
|
||||
macro_rules! helper_init { (static $name:ident: Helper<$m:ty>) => (
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@ use c_str::ToCStr;
|
|||
use error::{FromError, Error};
|
||||
use fmt;
|
||||
use io::{IoError, IoResult};
|
||||
use libc::{mod, c_int, c_char, c_void};
|
||||
use libc::{self, c_int, c_char, c_void};
|
||||
use os;
|
||||
use path::{BytesContainer};
|
||||
use ptr;
|
||||
|
|
|
|||
|
|
@ -14,9 +14,9 @@ use libc;
|
|||
use c_str::CString;
|
||||
use mem;
|
||||
use sync::{atomic, Arc, Mutex};
|
||||
use io::{mod, IoResult, IoError};
|
||||
use io::{self, IoResult, IoError};
|
||||
|
||||
use sys::{mod, timer, retry, c, set_nonblocking, wouldblock};
|
||||
use sys::{self, timer, retry, c, set_nonblocking, wouldblock};
|
||||
use sys::fs::{fd_t, FileDesc};
|
||||
use sys_common::net::*;
|
||||
use sys_common::net::SocketStatus::*;
|
||||
|
|
|
|||
|
|
@ -15,15 +15,15 @@ use c_str::{CString, ToCStr};
|
|||
use collections;
|
||||
use hash::Hash;
|
||||
use io::process::{ProcessExit, ExitStatus, ExitSignal};
|
||||
use io::{mod, IoResult, IoError, EndOfFile};
|
||||
use libc::{mod, pid_t, c_void, c_int};
|
||||
use io::{self, IoResult, IoError, EndOfFile};
|
||||
use libc::{self, pid_t, c_void, c_int};
|
||||
use mem;
|
||||
use os;
|
||||
use path::BytesContainer;
|
||||
use ptr;
|
||||
use sync::mpsc::{channel, Sender, Receiver};
|
||||
use sys::fs::FileDesc;
|
||||
use sys::{mod, retry, c, wouldblock, set_nonblocking, ms_to_timeval};
|
||||
use sys::{self, retry, c, wouldblock, set_nonblocking, ms_to_timeval};
|
||||
use sys_common::helper_thread::Helper;
|
||||
use sys_common::{AsInner, mkerr_libc, timeout};
|
||||
|
||||
|
|
|
|||
|
|
@ -11,8 +11,8 @@
|
|||
use prelude::v1::*;
|
||||
|
||||
use sys::fs::FileDesc;
|
||||
use libc::{mod, c_int};
|
||||
use io::{mod, IoResult, IoError};
|
||||
use libc::{self, c_int};
|
||||
use io::{self, IoResult, IoError};
|
||||
use sys_common;
|
||||
|
||||
pub struct TTY {
|
||||
|
|
|
|||
|
|
@ -9,9 +9,9 @@
|
|||
// except according to those terms.
|
||||
|
||||
use cell::UnsafeCell;
|
||||
use libc::{mod, DWORD};
|
||||
use libc::{self, DWORD};
|
||||
use os;
|
||||
use sys::mutex::{mod, Mutex};
|
||||
use sys::mutex::{self, Mutex};
|
||||
use sys::sync as ffi;
|
||||
use time::Duration;
|
||||
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
//! Blocking Windows-based file I/O
|
||||
|
||||
use alloc::arc::Arc;
|
||||
use libc::{mod, c_int};
|
||||
use libc::{self, c_int};
|
||||
|
||||
use c_str::CString;
|
||||
use mem;
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
use libc::{mod, BOOL, LPCSTR, HANDLE, LPSECURITY_ATTRIBUTES, CloseHandle};
|
||||
use libc::{self, BOOL, LPCSTR, HANDLE, LPSECURITY_ATTRIBUTES, CloseHandle};
|
||||
use ptr;
|
||||
|
||||
pub type signal = HANDLE;
|
||||
|
|
|
|||
|
|
@ -22,7 +22,7 @@ use prelude::v1::*;
|
|||
|
||||
use num;
|
||||
use mem;
|
||||
use io::{mod, IoResult, IoError};
|
||||
use io::{self, IoResult, IoError};
|
||||
use sync::{Once, ONCE_INIT};
|
||||
|
||||
macro_rules! helper_init { (static $name:ident: Helper<$m:ty>) => (
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@
|
|||
use prelude::v1::*;
|
||||
|
||||
use sync::atomic;
|
||||
use alloc::{mod, heap};
|
||||
use alloc::{self, heap};
|
||||
|
||||
use libc::DWORD;
|
||||
use sys::sync as ffi;
|
||||
|
|
|
|||
|
|
@ -91,9 +91,9 @@ use c_str::CString;
|
|||
use mem;
|
||||
use ptr;
|
||||
use sync::{atomic, Arc, Mutex};
|
||||
use io::{mod, IoError, IoResult};
|
||||
use io::{self, IoError, IoResult};
|
||||
|
||||
use sys_common::{mod, eof};
|
||||
use sys_common::{self, eof};
|
||||
|
||||
use super::{c, os, timer, to_utf16, decode_error_detailed};
|
||||
|
||||
|
|
|
|||
|
|
@ -24,7 +24,7 @@ use hash::Hash;
|
|||
use io::{IoResult, IoError};
|
||||
|
||||
use sys::fs;
|
||||
use sys::{mod, retry, c, wouldblock, set_nonblocking, ms_to_timeval, timer};
|
||||
use sys::{self, retry, c, wouldblock, set_nonblocking, ms_to_timeval, timer};
|
||||
use sys::fs::FileDesc;
|
||||
use sys_common::helper_thread::Helper;
|
||||
use sys_common::{AsInner, mkerr_libc, timeout};
|
||||
|
|
|
|||
|
|
@ -17,8 +17,8 @@ use prelude::v1::*;
|
|||
use super::{last_error, last_net_error, retry, sock_t};
|
||||
use sync::{Arc, atomic};
|
||||
use sys::fs::FileDesc;
|
||||
use sys::{mod, c, set_nonblocking, wouldblock, timer};
|
||||
use sys_common::{mod, timeout, eof, net};
|
||||
use sys::{self, c, set_nonblocking, wouldblock, timer};
|
||||
use sys_common::{self, timeout, eof, net};
|
||||
|
||||
pub use sys_common::net::TcpStream;
|
||||
|
||||
|
|
|
|||
|
|
@ -27,7 +27,7 @@
|
|||
|
||||
use prelude::v1::*;
|
||||
|
||||
use io::{mod, IoError, IoResult, MemReader};
|
||||
use io::{self, IoError, IoResult, MemReader};
|
||||
use iter::repeat;
|
||||
use libc::types::os::arch::extra::LPCVOID;
|
||||
use libc::{c_int, HANDLE, LPDWORD, DWORD, LPVOID};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue