Skip to content

Commit

Permalink
rustfmt
Browse files Browse the repository at this point in the history
  • Loading branch information
zhaofengli committed Sep 2, 2024
1 parent 938cb76 commit 1899dd7
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 6 deletions.
20 changes: 16 additions & 4 deletions attic/src/stream.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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]);
Expand Down
2 changes: 1 addition & 1 deletion attic/src/testing/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,4 +24,4 @@ pub fn get_fake_data(len: usize) -> Vec<u8> {
}

data
}
}
2 changes: 1 addition & 1 deletion client/src/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)]
Expand Down

0 comments on commit 1899dd7

Please sign in to comment.