Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion examples/read_csv_in_tar.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ fn main() {
let mut entry = entry.unwrap();
let path = entry.path().unwrap().to_string_lossy().to_string();
if path.ends_with("csv") {
println!("found file {}", &path);
println!("found file {path}");
println!("reading content now... (sleep for 3 seconds)");
sleep(Duration::from_secs(3));
let mut content: String = String::default();
Expand Down
2 changes: 1 addition & 1 deletion src/s3/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1410,7 +1410,7 @@ mod tests {
let (cs, tp) = calculate_chunk_size(hundred_gb, chunk_size);
assert!(tp <= 10_000);
assert!(cs >= 8 * 1024 * 1024);
assert_eq!(tp, ((hundred_gb + cs - 1) / cs) as usize);
assert_eq!(tp, hundred_gb.div_ceil(cs) as usize);
}

#[test]
Expand Down
2 changes: 1 addition & 1 deletion tests/basic_integration.rs
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ FZr4y1T605mmkIwGPQ==

#[test]
fn test_file_extension_plain() {
assert_eq!(oneio::get_reader("tests/test_data.txt").is_ok(), true);
assert!(oneio::get_reader("tests/test_data.txt").is_ok());
}

#[cfg(feature = "any_gz")]
Expand Down
2 changes: 1 addition & 1 deletion tests/s3_large_upload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ fn test_large_multipart_upload() {
);
println!(
"Expected parts: {} (at 8MB chunks)",
(size + 8 * 1024 * 1024 - 1) / (8 * 1024 * 1024)
size.div_ceil(8 * 1024 * 1024)
);

let unique_id = std::time::SystemTime::now()
Expand Down
Loading