Skip to content
This repository has been archived by the owner on Sep 4, 2023. It is now read-only.

Commit

Permalink
xlsx
Browse files Browse the repository at this point in the history
  • Loading branch information
Gambhiro committed Nov 27, 2019
1 parent ba76637 commit 40a6db9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions src/dict_word.rs
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,7 @@ pub struct DictWordXlsx {
#[serde(default)]
pub also_written_as: String,

#[serde(default)]
pub definition_md: String,
}

Expand Down
4 changes: 2 additions & 2 deletions src/ebook.rs
Original file line number Diff line number Diff line change
Expand Up @@ -670,7 +670,7 @@ impl Ebook {
let file_content = self
.asset_files_byte
.get(filename.to_str().unwrap())
.ok_or("missing get key")?;
.ok_or_else(|| format!("cover_path not found: {}", self.meta.cover_path))?;
let mut file = File::create(oebps_dir.join(filename))?;
file.write_all(file_content)?;
}
Expand All @@ -682,7 +682,7 @@ impl Ebook {
let file_content = self
.asset_files_byte
.get(&filename.to_string())
.ok_or("missing get key")?;
.ok_or("style.css not found")?;
let mut file = File::create(oebps_dir.join(filename))?;
file.write_all(file_content)?;
}
Expand Down

0 comments on commit 40a6db9

Please sign in to comment.