From 6e538edea2557018c3c8eae41aacf6cdf6370a4d Mon Sep 17 00:00:00 2001 From: blake2-ppc Date: Wed, 11 Sep 2013 01:57:08 +0200 Subject: [PATCH] rt::io: Use vec::reserve_additional --- src/libstd/rt/io/extensions.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libstd/rt/io/extensions.rs b/src/libstd/rt/io/extensions.rs index e221f0ee94d..1c48d6e7f1e 100644 --- a/src/libstd/rt/io/extensions.rs +++ b/src/libstd/rt/io/extensions.rs @@ -303,7 +303,7 @@ impl ReaderUtil for T { let start_len = buf.len(); let mut total_read = 0; - buf.reserve_at_least(start_len + len); + buf.reserve_additional(len); vec::raw::set_len(buf, start_len + len); do (|| {