Skip to content

Commit 9a6745f

Browse files
authored
Merge pull request #57 from stumpapp/master
Fix: Add missing fields to EpubDoc mock impl
2 parents 8ffbbf1 + b80cfe4 commit 9a6745f

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/doc.rs

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -185,16 +185,17 @@ impl EpubDoc<std::io::Cursor<Vec<u8>>> {
185185
let archive = EpubArchive::from_reader(std::io::Cursor::new(data))?;
186186
Ok(Self {
187187
archive,
188+
version: EpubVersion::Version2_0,
188189
spine: vec![],
189190
toc: vec![],
191+
toc_title: String::new(),
190192
resources: HashMap::new(),
191-
metadata: HashMap::new(),
193+
metadata: Vec::new(),
192194
root_file: PathBuf::new(),
193195
root_base: PathBuf::new(),
194196
current: 0,
195197
extra_css: vec![],
196198
unique_identifier: None,
197-
cover_id: None,
198199
})
199200
}
200201
}

0 commit comments

Comments
 (0)