Skip to content

Commit afba0a1

Browse files
committed
Cleanup code in benches.
1 parent 471c6a8 commit afba0a1

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

benches/helpers.rs

Lines changed: 0 additions & 9 deletions
This file was deleted.

benches/options.rs

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,14 +5,11 @@ extern crate time;
55
extern crate test;
66
extern crate unix_socket;
77

8-
mod helpers;
9-
use helpers::connect;
108
use test::{Bencher, black_box};
11-
use time::Duration;
129
use unix_socket::UnixStream;
1310

1411
#[bench]
1512
fn status(b: &mut Bencher) {
1613
let mut mpd = mpd::Client::<UnixStream>::new(UnixStream::connect("/var/run/mpd/socket").unwrap()).unwrap();
17-
b.iter(|| { black_box(mpd.status()); });
14+
b.iter(|| { black_box(mpd.status()).unwrap(); });
1815
}

0 commit comments

Comments
 (0)