diff options
| author | Jakub Bukaj <jakub@jakub.cc> | 2014-11-16 10:21:42 +0100 |
|---|---|---|
| committer | Jakub Bukaj <jakub@jakub.cc> | 2014-11-16 10:21:42 +0100 |
| commit | 4c30cb25642d2cd4b228554e768068ba07504797 (patch) | |
| tree | ea124407c05314a1862322b1fccc28ac21a3ba09 /src/libcollections/vec.rs | |
| parent | 42c77f4958fcd6c2238d883c49f52341e0631999 (diff) | |
| parent | d82a7ea57a69954dcc9b58869907a0a070ef432d (diff) | |
| download | rust-4c30cb25642d2cd4b228554e768068ba07504797.tar.gz rust-4c30cb25642d2cd4b228554e768068ba07504797.zip | |
rollup merge of #18976: bjz/rfc369-numerics
Diffstat (limited to 'src/libcollections/vec.rs')
| -rw-r--r-- | src/libcollections/vec.rs | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/libcollections/vec.rs b/src/libcollections/vec.rs index ecd10b3d4c9..fdee089380b 100644 --- a/src/libcollections/vec.rs +++ b/src/libcollections/vec.rs @@ -1652,6 +1652,13 @@ impl<T> Vec<T> { } } +impl<'a> fmt::FormatWriter for Vec<u8> { + fn write(&mut self, buf: &[u8]) -> fmt::Result { + self.push_all(buf); + Ok(()) + } +} + #[cfg(test)] mod tests { extern crate test; |
