std: Remove usage of fmt!
This commit is contained in:
@@ -16,36 +16,36 @@ pub struct UnixStream;
|
||||
|
||||
impl UnixStream {
|
||||
pub fn connect<P: PathLike>(_path: &P) -> Option<UnixStream> {
|
||||
fail!()
|
||||
fail2!()
|
||||
}
|
||||
}
|
||||
|
||||
impl Reader for UnixStream {
|
||||
fn read(&mut self, _buf: &mut [u8]) -> Option<uint> { fail!() }
|
||||
fn read(&mut self, _buf: &mut [u8]) -> Option<uint> { fail2!() }
|
||||
|
||||
fn eof(&mut self) -> bool { fail!() }
|
||||
fn eof(&mut self) -> bool { fail2!() }
|
||||
}
|
||||
|
||||
impl Writer for UnixStream {
|
||||
fn write(&mut self, _v: &[u8]) { fail!() }
|
||||
fn write(&mut self, _v: &[u8]) { fail2!() }
|
||||
|
||||
fn flush(&mut self) { fail!() }
|
||||
fn flush(&mut self) { fail2!() }
|
||||
}
|
||||
|
||||
pub struct UnixListener;
|
||||
|
||||
impl UnixListener {
|
||||
pub fn bind<P: PathLike>(_path: &P) -> Option<UnixListener> {
|
||||
fail!()
|
||||
fail2!()
|
||||
}
|
||||
}
|
||||
|
||||
impl Listener<UnixStream, UnixAcceptor> for UnixListener {
|
||||
fn listen(self) -> Option<UnixAcceptor> { fail!() }
|
||||
fn listen(self) -> Option<UnixAcceptor> { fail2!() }
|
||||
}
|
||||
|
||||
pub struct UnixAcceptor;
|
||||
|
||||
impl Acceptor<UnixStream> for UnixAcceptor {
|
||||
fn accept(&mut self) -> Option<UnixStream> { fail!() }
|
||||
fn accept(&mut self) -> Option<UnixStream> { fail2!() }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user