Skip to content

Commit

Permalink
Merge pull request #134 from SapryWenInera/async_pr_prelude
Browse files Browse the repository at this point in the history
Move read sync code into sync submodule
  • Loading branch information
Pr0methean authored May 18, 2024
2 parents 6ae2cfb + 91e7e1d commit e7bae15
Show file tree
Hide file tree
Showing 6 changed files with 1,376 additions and 1,349 deletions.
2 changes: 1 addition & 1 deletion examples/stdin_info.rs
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ fn real_main() -> i32 {
let mut buf = [0u8; 16];

loop {
match zip::read::read_zipfile_from_stream(&mut stdin_handle) {
match zip::read::sync::read_zipfile_from_stream(&mut stdin_handle) {
Ok(Some(mut file)) => {
println!(
"{}: {} bytes ({} bytes packed)",
Expand Down
2 changes: 1 addition & 1 deletion fuzz/fuzz_targets/fuzz_read.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#![no_main]
use libfuzzer_sys::fuzz_target;
use std::io::{Read, Seek, SeekFrom};
use zip::read::read_zipfile_from_stream;
use zip::read::sync::read_zipfile_from_stream;

const MAX_BYTES_TO_READ: u64 = 1 << 24;

Expand Down
Loading

0 comments on commit e7bae15

Please sign in to comment.