diff --git a/attic/src/stream.rs b/attic/src/stream.rs index 077b021..6619b56 100644 --- a/attic/src/stream.rs +++ b/attic/src/stream.rs @@ -190,10 +190,22 @@ mod tests { // force multiple reads let mut buf = vec![0u8; 100]; let mut bytes_read = 0; - bytes_read += read.read(&mut buf[bytes_read..bytes_read + 5]).await.unwrap(); - bytes_read += read.read(&mut buf[bytes_read..bytes_read + 5]).await.unwrap(); - bytes_read += read.read(&mut buf[bytes_read..bytes_read + 5]).await.unwrap(); - bytes_read += read.read(&mut buf[bytes_read..bytes_read + 5]).await.unwrap(); + bytes_read += read + .read(&mut buf[bytes_read..bytes_read + 5]) + .await + .unwrap(); + bytes_read += read + .read(&mut buf[bytes_read..bytes_read + 5]) + .await + .unwrap(); + bytes_read += read + .read(&mut buf[bytes_read..bytes_read + 5]) + .await + .unwrap(); + bytes_read += read + .read(&mut buf[bytes_read..bytes_read + 5]) + .await + .unwrap(); assert_eq!(expected.len(), bytes_read); assert_eq!(expected, &buf[..bytes_read]); diff --git a/attic/src/testing/mod.rs b/attic/src/testing/mod.rs index 393c31d..124e075 100644 --- a/attic/src/testing/mod.rs +++ b/attic/src/testing/mod.rs @@ -24,4 +24,4 @@ pub fn get_fake_data(len: usize) -> Vec { } data -} \ No newline at end of file +} diff --git a/client/src/cache.rs b/client/src/cache.rs index 66b380c..71b4829 100644 --- a/client/src/cache.rs +++ b/client/src/cache.rs @@ -14,7 +14,7 @@ use std::str::FromStr; use anyhow::{anyhow, Result}; use serde::{Deserialize, Serialize}; -pub use attic::cache::{CacheName}; +pub use attic::cache::CacheName; /// A reference to a cache. #[derive(Debug, Clone)]