We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 471c6a8 commit afba0a1Copy full SHA for afba0a1
benches/helpers.rs
benches/options.rs
@@ -5,14 +5,11 @@ extern crate time;
5
extern crate test;
6
extern crate unix_socket;
7
8
-mod helpers;
9
-use helpers::connect;
10
use test::{Bencher, black_box};
11
-use time::Duration;
12
use unix_socket::UnixStream;
13
14
#[bench]
15
fn status(b: &mut Bencher) {
16
let mut mpd = mpd::Client::<UnixStream>::new(UnixStream::connect("/var/run/mpd/socket").unwrap()).unwrap();
17
- b.iter(|| { black_box(mpd.status()); });
+ b.iter(|| { black_box(mpd.status()).unwrap(); });
18
}
0 commit comments