Skip to content

Commit

Permalink
chore(body): fix unused import in chunk benchmarks
Browse files Browse the repository at this point in the history
  • Loading branch information
seanmonstar committed Jun 4, 2018
1 parent 185432d commit 785914e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,10 @@ __internal_flaky_tests = []
codegen-units = 1
incremental = false

[profile.bench]
codegen-units = 1
incremental = false

[[example]]
name = "client"
path = "examples/client.rs"
Expand Down
4 changes: 1 addition & 3 deletions src/body/chunk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,6 @@ impl ExactSizeIterator for IntoIter {}

#[cfg(test)]
mod tests {
use super::*;

#[cfg(feature = "nightly")]
use test::Bencher;

Expand All @@ -178,7 +176,7 @@ mod tests {
let mut dst = Vec::with_capacity(128);

b.iter(|| {
let chunk = Chunk::from(s);
let chunk = ::Chunk::from(s);
dst.put(chunk);
::test::black_box(&dst);
unsafe { dst.set_len(0); }
Expand Down

0 comments on commit 785914e

Please sign in to comment.