chore: Bug fix: ToOwned requires an explicit type bound
This commit is contained in:
parent
8e74a9da07
commit
df8479ac4f
1 changed files with 3 additions and 2 deletions
|
@ -724,14 +724,15 @@ impl<W: Write + Seek> ZipWriter<W> {
|
||||||
}
|
}
|
||||||
|
|
||||||
/// Start a new file for with the requested options.
|
/// Start a new file for with the requested options.
|
||||||
fn start_entry<S, T: FileOptionExtension>(
|
fn start_entry<S, SToOwned, T: FileOptionExtension>(
|
||||||
&mut self,
|
&mut self,
|
||||||
name: S,
|
name: S,
|
||||||
options: FileOptions<T>,
|
options: FileOptions<T>,
|
||||||
raw_values: Option<ZipRawValues>,
|
raw_values: Option<ZipRawValues>,
|
||||||
) -> ZipResult<()>
|
) -> ZipResult<()>
|
||||||
where
|
where
|
||||||
S: Into<Box<str>> + ToOwned,
|
S: Into<Box<str>> + ToOwned<Owned = SToOwned>,
|
||||||
|
SOwned: Into<Box<str>>
|
||||||
{
|
{
|
||||||
self.finish_file()?;
|
self.finish_file()?;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Reference in a new issue