From b7cce8a296d74bc54ef3f3712acae76297a31d5b Mon Sep 17 00:00:00 2001 From: Chris Hennick <4961925+Pr0methean@users.noreply.github.com> Date: Thu, 2 May 2024 17:09:26 -0700 Subject: [PATCH] doc(examples): fix type mismatch Signed-off-by: Chris Hennick <4961925+Pr0methean@users.noreply.github.com> --- examples/write-large-file.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/write-large-file.rs b/examples/write-large-file.rs index c30c52bb..772e509d 100644 --- a/examples/write-large-file.rs +++ b/examples/write-large-file.rs @@ -5,7 +5,7 @@ use std::io::Write; use zip::write::SimpleFileOptions; fn main() -> Result<(), Box> { 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 {