diff options
| author | Chris Wong <lambda.fairy@gmail.com> | 2015-02-14 12:56:32 +1300 |
|---|---|---|
| committer | Chris Wong <lambda.fairy@gmail.com> | 2015-02-14 12:56:32 +1300 |
| commit | bc9084b9b7f21140ffbc051ecb2a0cd08e88f3bb (patch) | |
| tree | 7eca299eb3e3c7f1494f067bc6dcb4c119c279dd /src/libcollections/string.rs | |
| parent | cf636c233dfeef5abf0de8fb35e23c0a161810d2 (diff) | |
| download | rust-bc9084b9b7f21140ffbc051ecb2a0cd08e88f3bb.tar.gz rust-bc9084b9b7f21140ffbc051ecb2a0cd08e88f3bb.zip | |
Rename `fmt::Writer` to `fmt::Write`
This brings it in line with its namesake in `std::io`. [breaking-change]
Diffstat (limited to 'src/libcollections/string.rs')
| -rw-r--r-- | src/libcollections/string.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcollections/string.rs b/src/libcollections/string.rs index 63483d30dd2..69fd28d1723 100644 --- a/src/libcollections/string.rs +++ b/src/libcollections/string.rs @@ -950,7 +950,7 @@ pub trait ToString { impl<T: fmt::Display + ?Sized> ToString for T { #[inline] fn to_string(&self) -> String { - use core::fmt::Writer; + use core::fmt::Write; let mut buf = String::new(); let _ = buf.write_fmt(format_args!("{}", self)); buf.shrink_to_fit(); @@ -984,7 +984,7 @@ impl<'a> Str for CowString<'a> { } #[stable(feature = "rust1", since = "1.0.0")] -impl fmt::Writer for String { +impl fmt::Write for String { #[inline] fn write_str(&mut self, s: &str) -> fmt::Result { self.push_str(s); |
