diff --git a/src/archive/fetcher.rs b/src/archive/fetcher.rs index db7c1b1..002d3e1 100644 --- a/src/archive/fetcher.rs +++ b/src/archive/fetcher.rs @@ -74,9 +74,11 @@ where } } - pub fn read(&self, path: &str) -> Result> { + pub fn read(&self, story: &Story) -> Result> { use ZipError::*; + let path = &story.archive.path; + let mut archive = self.archive.lock().map_err(|e| match e { _ => Error::archive("Could not acquire fetcher lock"), })?;