From bc9084b9b7f21140ffbc051ecb2a0cd08e88f3bb Mon Sep 17 00:00:00 2001 From: Chris Wong Date: Sat, 14 Feb 2015 12:56:32 +1300 Subject: Rename `fmt::Writer` to `fmt::Write` This brings it in line with its namesake in `std::io`. [breaking-change] --- src/test/run-pass/colorful-write-macros.rs | 4 ++-- src/test/run-pass/ifmt.rs | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) (limited to 'src/test') diff --git a/src/test/run-pass/colorful-write-macros.rs b/src/test/run-pass/colorful-write-macros.rs index bcb2e492041..841aaa94e9b 100644 --- a/src/test/run-pass/colorful-write-macros.rs +++ b/src/test/run-pass/colorful-write-macros.rs @@ -21,7 +21,7 @@ struct Foo<'a> { struct Bar; -impl fmt::Writer for Bar { +impl fmt::Write for Bar { fn write_str(&mut self, _: &str) -> fmt::Result { Ok(()) } @@ -39,7 +39,7 @@ fn main() { let mut s = Bar; { - use std::fmt::Writer; + use std::fmt::Write; write!(&mut s, "test"); } } diff --git a/src/test/run-pass/ifmt.rs b/src/test/run-pass/ifmt.rs index 5d157d875fa..e5aade792ed 100644 --- a/src/test/run-pass/ifmt.rs +++ b/src/test/run-pass/ifmt.rs @@ -165,9 +165,9 @@ pub fn main() { } // Basic test to make sure that we can invoke the `write!` macro with an -// io::Writer instance. +// fmt::Write instance. fn test_write() { - use std::fmt::Writer; + use std::fmt::Write; let mut buf = String::new(); write!(&mut buf, "{}", 3); { @@ -194,7 +194,7 @@ fn test_print() { // Just make sure that the macros are defined, there's not really a lot that we // can do with them just yet (to test the output) fn test_format_args() { - use std::fmt::Writer; + use std::fmt::Write; let mut buf = String::new(); { let w = &mut buf; -- cgit 1.4.1-3-g733a5