From a3aac29e852c0a85348d4385f6204196e051315e Mon Sep 17 00:00:00 2001 From: Zac Pullar-Strecker Date: Fri, 26 Jun 2020 10:53:57 +1200 Subject: [PATCH] switch extract from dynamic to static dispatch --- src/read.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/read.rs b/src/read.rs index d2eb4bf1..5c19b955 100644 --- a/src/read.rs +++ b/src/read.rs @@ -243,7 +243,7 @@ impl ZipArchive { /// # Platform-specific behaviour /// /// On unix systems permissions from the zip file are preserved, if they exist. - pub fn extract(&mut self, directory: &dyn AsRef) -> ZipResult<()> { + pub fn extract>(&mut self, directory: P) -> ZipResult<()> { for i in 0..self.len() { let mut file = self.by_index(i)?; let filepath = file.sanitized_name();