diff --git a/src/write.rs b/src/write.rs index 05f77ed3..b6e3e9e4 100644 --- a/src/write.rs +++ b/src/write.rs @@ -13,6 +13,7 @@ use crate::types::{ffi, AesVendorVersion, DateTime, System, ZipFileData, DEFAULT use core::num::NonZeroU64; use crc32fast::Hasher; use indexmap::IndexMap; +use std::borrow::ToOwned; use std::default::Default; use std::io; use std::io::prelude::*; @@ -730,7 +731,7 @@ impl ZipWriter { raw_values: Option, ) -> ZipResult<()> where - S: Into>, + S: Into> + ToOwned, { self.finish_file()?;