Skip to content

Commit

Permalink
test(bench): switch vec_push_all to extend_from_slice
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar committed Dec 14, 2015
1 parent d1f4a8b commit 23f20c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions benches/client.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#![deny(warnings)]
#![feature(vec_push_all, test)]
#![feature(test)]
extern crate hyper;

extern crate test;
Expand All @@ -21,7 +21,7 @@ impl MockStream {
fn new() -> MockStream {
let head = b"HTTP/1.1 200 OK\r\nServer: Mock\r\n\r\n";
let mut res = head.to_vec();
res.push_all(README);
res.extend_from_slice(README);
MockStream {
read: Cursor::new(res)
}
Expand Down

0 comments on commit 23f20c7

Please sign in to comment.