about summary refs log tree commit diff
path: root/src/libstd/rt
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2013-08-08 00:22:52 -0700
committerbors <bors@rust-lang.org>2013-08-08 00:22:52 -0700
commita0080f4e07891c89aa1f9851f8b0a3c754734fe8 (patch)
tree3c1dc02b47575f9569a662859b144cfcb587c033 /src/libstd/rt
parent9db698a81b0d68b093030fe52f941146aba65dd3 (diff)
parentffb670ffcd69ed8e7cd13a7f06375ede752349e2 (diff)
downloadrust-a0080f4e07891c89aa1f9851f8b0a3c754734fe8.tar.gz
rust-a0080f4e07891c89aa1f9851f8b0a3c754734fe8.zip
auto merge of #8245 : alexcrichton/rust/fmt2, r=graydon
This is a reopening of #8182, although this removes any abuse of the compiler internals. Now it's just a pure syntax extension (hard coded what the attribute names are).
Diffstat (limited to 'src/libstd/rt')
-rw-r--r--src/libstd/rt/io/mem.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/rt/io/mem.rs b/src/libstd/rt/io/mem.rs
index c93945a6a9a..277897e5d2e 100644
--- a/src/libstd/rt/io/mem.rs
+++ b/src/libstd/rt/io/mem.rs
@@ -26,7 +26,7 @@ pub struct MemWriter {
 }
 
 impl MemWriter {
-    pub fn new() -> MemWriter { MemWriter { buf: ~[] } }
+    pub fn new() -> MemWriter { MemWriter { buf: vec::with_capacity(128) } }
 }
 
 impl Writer for MemWriter {