Skip to content

Commit 0e1384b

Browse files
authored
Merge pull request #2009 from danieleades/deps/toml
bump 'toml' dependency
2 parents 69bb5c7 + 2160613 commit 0e1384b

File tree

3 files changed

+49
-4
lines changed

3 files changed

+49
-4
lines changed

Cargo.lock

+45-2
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ serde = { version = "1.0", features = ["derive"] }
3333
serde_json = "1.0"
3434
shlex = "1"
3535
tempfile = "3.0"
36-
toml = "0.5.1"
36+
toml = "0.7.2"
3737
topological-sort = "0.2.2"
3838

3939
# Watch feature

src/book/init.rs

+3-1
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,9 @@ impl BookBuilder {
9898
fn write_book_toml(&self) -> Result<()> {
9999
debug!("Writing book.toml");
100100
let book_toml = self.root.join("book.toml");
101-
let cfg = toml::to_vec(&self.config).with_context(|| "Unable to serialize the config")?;
101+
let cfg = toml::to_string(&self.config)
102+
.with_context(|| "Unable to serialize the config")?
103+
.into_bytes();
102104

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

0 commit comments

Comments
 (0)