From fbf000cf5671b9b00f88db8aa59a4e0f9fcfc56e Mon Sep 17 00:00:00 2001 From: Chris Hennick <4961925+Pr0methean@users.noreply.github.com> Date: Wed, 1 May 2024 15:06:55 -0700 Subject: [PATCH] docs(examples): Update FileOptions import --- examples/write-large-file.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/write-large-file.rs b/examples/write-large-file.rs index 87e52bcc..3326af86 100644 --- a/examples/write-large-file.rs +++ b/examples/write-large-file.rs @@ -2,7 +2,7 @@ use std::io::Write; -use zip::write::FileOptions; +use zip::write::{SimpleFileOptions}; fn main() -> Result<(), Box> { let args: Vec<_> = std::env::args().collect(); if args.len() < 2 { @@ -18,7 +18,7 @@ fn doit(filename: &str) -> zip::result::ZipResult<()> { let file = std::fs::File::create(filename)?; let mut zip = zip::ZipWriter::new(file); - let options = FileOptions::default() + let options = SimpleFileOptions::default() .compression_method(zip::CompressionMethod::Deflated) // files over u32::MAX require this flag set. .large_file(true)