chore: Fix type bound so that to_owned() is available

This commit is contained in:
Chris Hennick 2024-05-09 18:31:07 -07:00 committed by GitHub
parent dcc6850c51
commit 8e74a9da07
Signed by: DevComp
GPG key ID: B5690EEEBB952194

View file

@ -13,6 +13,7 @@ use crate::types::{ffi, AesVendorVersion, DateTime, System, ZipFileData, DEFAULT
use core::num::NonZeroU64; use core::num::NonZeroU64;
use crc32fast::Hasher; use crc32fast::Hasher;
use indexmap::IndexMap; use indexmap::IndexMap;
use std::borrow::ToOwned;
use std::default::Default; use std::default::Default;
use std::io; use std::io;
use std::io::prelude::*; use std::io::prelude::*;
@ -730,7 +731,7 @@ impl<W: Write + Seek> ZipWriter<W> {
raw_values: Option<ZipRawValues>, raw_values: Option<ZipRawValues>,
) -> ZipResult<()> ) -> ZipResult<()>
where where
S: Into<Box<str>>, S: Into<Box<str>> + ToOwned,
{ {
self.finish_file()?; self.finish_file()?;