Skip to content

Commit

Permalink
Merge pull request #2009 from danieleades/deps/toml
Browse files Browse the repository at this point in the history
bump 'toml' dependency
  • Loading branch information
ehuss authored Feb 8, 2023
2 parents 69bb5c7 + 2160613 commit 0e1384b
Show file tree
Hide file tree
Showing 3 changed files with 49 additions and 4 deletions.
47 changes: 45 additions & 2 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ serde = { version = "1.0", features = ["derive"] }
serde_json = "1.0"
shlex = "1"
tempfile = "3.0"
toml = "0.5.1"
toml = "0.7.2"
topological-sort = "0.2.2"

# Watch feature
Expand Down
4 changes: 3 additions & 1 deletion src/book/init.rs
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,9 @@ impl BookBuilder {
fn write_book_toml(&self) -> Result<()> {
debug!("Writing book.toml");
let book_toml = self.root.join("book.toml");
let cfg = toml::to_vec(&self.config).with_context(|| "Unable to serialize the config")?;
let cfg = toml::to_string(&self.config)
.with_context(|| "Unable to serialize the config")?
.into_bytes();

File::create(book_toml)
.with_context(|| "Couldn't create book.toml")?
Expand Down

0 comments on commit 0e1384b

Please sign in to comment.