From a8ba31dbf3e7d80a069bc486a35eff8357282b68 Mon Sep 17 00:00:00 2001 From: Alex Crichton Date: Fri, 27 Sep 2013 17:02:31 -0700 Subject: std: Remove usage of fmt! --- src/libstd/rt/io/native/file.rs | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) (limited to 'src/libstd/rt/io/native') diff --git a/src/libstd/rt/io/native/file.rs b/src/libstd/rt/io/native/file.rs index 31c90336a24..f5f77f4e853 100644 --- a/src/libstd/rt/io/native/file.rs +++ b/src/libstd/rt/io/native/file.rs @@ -25,25 +25,25 @@ impl FileDesc { /// /// The `FileDesc` takes ownership of the file descriptor /// and will close it upon destruction. - pub fn new(_fd: fd_t) -> FileDesc { fail!() } + pub fn new(_fd: fd_t) -> FileDesc { fail2!() } } impl Reader for FileDesc { - fn read(&mut self, _buf: &mut [u8]) -> Option { fail!() } + fn read(&mut self, _buf: &mut [u8]) -> Option { fail2!() } - fn eof(&mut self) -> bool { fail!() } + fn eof(&mut self) -> bool { fail2!() } } impl Writer for FileDesc { - fn write(&mut self, _buf: &[u8]) { fail!() } + fn write(&mut self, _buf: &[u8]) { fail2!() } - fn flush(&mut self) { fail!() } + fn flush(&mut self) { fail2!() } } impl Seek for FileDesc { - fn tell(&self) -> u64 { fail!() } + fn tell(&self) -> u64 { fail2!() } - fn seek(&mut self, _pos: i64, _style: SeekStyle) { fail!() } + fn seek(&mut self, _pos: i64, _style: SeekStyle) { fail2!() } } pub struct CFile(*FILE); @@ -53,22 +53,22 @@ impl CFile { /// /// The `CFile` takes ownership of the file descriptor /// and will close it upon destruction. - pub fn new(_file: *FILE) -> CFile { fail!() } + pub fn new(_file: *FILE) -> CFile { fail2!() } } impl Reader for CFile { - fn read(&mut self, _buf: &mut [u8]) -> Option { fail!() } + fn read(&mut self, _buf: &mut [u8]) -> Option { fail2!() } - fn eof(&mut self) -> bool { fail!() } + fn eof(&mut self) -> bool { fail2!() } } impl Writer for CFile { - fn write(&mut self, _buf: &[u8]) { fail!() } + fn write(&mut self, _buf: &[u8]) { fail2!() } - fn flush(&mut self) { fail!() } + fn flush(&mut self) { fail2!() } } impl Seek for CFile { - fn tell(&self) -> u64 { fail!() } - fn seek(&mut self, _pos: i64, _style: SeekStyle) { fail!() } + fn tell(&self) -> u64 { fail2!() } + fn seek(&mut self, _pos: i64, _style: SeekStyle) { fail2!() } } -- cgit 1.4.1-3-g733a5