fix: only compile new example if a Deflate encoder is enabled
This commit is contained in:
parent
04390ca276
commit
e670e98073
1 changed files with 1 additions and 0 deletions
|
@ -3,6 +3,7 @@
|
||||||
use std::io::Write;
|
use std::io::Write;
|
||||||
|
|
||||||
use zip::write::SimpleFileOptions;
|
use zip::write::SimpleFileOptions;
|
||||||
|
#[cfg(feature = "_deflate-any")]
|
||||||
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||||
let args: Vec<_> = std::env::args().collect();
|
let args: Vec<_> = std::env::args().collect();
|
||||||
if args.len() < 2 {
|
if args.len() < 2 {
|
||||||
|
|
Loading…
Add table
Reference in a new issue