std: Remove usage of fmt!

This commit is contained in:
Alex Crichton
2013-09-27 17:02:31 -07:00
parent aaf6cc3a84
commit a8ba31dbf3
68 changed files with 497 additions and 509 deletions

View File

@@ -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!() }
}