chore: Fix type bound so that to_owned() is available
This commit is contained in:
parent
dcc6850c51
commit
8e74a9da07
1 changed files with 2 additions and 1 deletions
|
@ -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()?;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue