diff options
| author | bors <bors@rust-lang.org> | 2015-02-17 15:55:55 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2015-02-17 15:55:55 +0000 |
| commit | f9aeea7cb7865a2b82e7102837daabbe549177ea (patch) | |
| tree | 3f624ffaf751ef16c4630d068944dcf859d6a1d8 /src/test | |
| parent | f1bb6c2f46f08c1d7b6d695f5b3cf93142cb8860 (diff) | |
| parent | bc9084b9b7f21140ffbc051ecb2a0cd08e88f3bb (diff) | |
| download | rust-f9aeea7cb7865a2b82e7102837daabbe549177ea.tar.gz rust-f9aeea7cb7865a2b82e7102837daabbe549177ea.zip | |
Auto merge of #22311 - lfairy:consistent-fmt, r=alexcrichton
This brings it in line with its namesake in `std::io`. [breaking-change] r? @aturon
Diffstat (limited to 'src/test')
| -rw-r--r-- | src/test/run-pass/colorful-write-macros.rs | 4 | ||||
| -rw-r--r-- | src/test/run-pass/ifmt.rs | 6 |
2 files changed, 5 insertions, 5 deletions
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; |
