aboutsummaryrefslogtreecommitdiff
path: root/benches/bytes.rs
diff options
context:
space:
mode:
authorGravatar Taiki Endo <te316e89@gmail.com> 2020-05-22 13:17:30 +0900
committerGravatar GitHub <noreply@github.com> 2020-05-22 13:17:30 +0900
commit1fbf83816b60fbaa2f9e85585338138c3efa949f (patch)
tree859b49f1db1bf180a58045772f585b2ad5909379 /benches/bytes.rs
parent5e93fa4c6b3d6209329a3a9c90c6823886affea1 (diff)
downloadbytes-1fbf83816b60fbaa2f9e85585338138c3efa949f.tar.gz
bytes-1fbf83816b60fbaa2f9e85585338138c3efa949f.tar.zst
bytes-1fbf83816b60fbaa2f9e85585338138c3efa949f.zip
Format with rustfmt (#389)
* Format with rustfmt * Add rustfmt check to CI
Diffstat (limited to 'benches/bytes.rs')
-rw-r--r--benches/bytes.rs5
1 files changed, 3 insertions, 2 deletions
diff --git a/benches/bytes.rs b/benches/bytes.rs
index 9c36e60..1741ba0 100644
--- a/benches/bytes.rs
+++ b/benches/bytes.rs
@@ -3,8 +3,8 @@
extern crate test;
-use test::Bencher;
use bytes::Bytes;
+use test::Bencher;
#[bench]
fn deref_unique(b: &mut Bencher) {
@@ -42,7 +42,8 @@ fn deref_static(b: &mut Bencher) {
#[bench]
fn clone_static(b: &mut Bencher) {
- let bytes = Bytes::from_static("hello world 1234567890 and have a good byte 0987654321".as_bytes());
+ let bytes =
+ Bytes::from_static("hello world 1234567890 and have a good byte 0987654321".as_bytes());
b.iter(|| {
for _ in 0..1024 {