chore: Bug fix: ToOwned requires an explicit type bound

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

View file

@ -724,14 +724,15 @@ impl<W: Write + Seek> ZipWriter<W> {
}
/// Start a new file for with the requested options.
fn start_entry<S, T: FileOptionExtension>(
fn start_entry<S, SToOwned, T: FileOptionExtension>(
&mut self,
name: S,
options: FileOptions<T>,
raw_values: Option<ZipRawValues>,
) -> ZipResult<()>
where
S: Into<Box<str>> + ToOwned,
S: Into<Box<str>> + ToOwned<Owned = SToOwned>,
SOwned: Into<Box<str>>
{
self.finish_file()?;