doc(examples): fix type mismatch

Signed-off-by: Chris Hennick <4961925+Pr0methean@users.noreply.github.com>
This commit is contained in:
Chris Hennick 2024-05-02 17:09:26 -07:00 committed by GitHub
parent 468f314b29
commit b7cce8a296
Signed by: DevComp
GPG key ID: B5690EEEBB952194

View file

@ -5,7 +5,7 @@ use std::io::Write;
use zip::write::SimpleFileOptions;
fn main() -> Result<(), Box<dyn std::error::Error>> {
if !cfg!(feature = "_deflate-any") {
return Err("Please enable one of the deflate features");
return Err("Please enable one of the deflate features".into());
}
let args: Vec<_> = std::env::args().collect();
if args.len() < 2 {