Skip to content

Commit 1517435

Browse files
authored
Merge pull request #2021 from rust-lang/revert-2009-deps/toml
Revert "bump 'toml' dependency"
2 parents 112fd4a + 90fbe11 commit 1517435

File tree

3 files changed

+4
-49
lines changed

3 files changed

+4
-49
lines changed

Cargo.lock

Lines changed: 2 additions & 45 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
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.7.2"
36+
toml = "0.5.1"
3737
topological-sort = "0.2.2"
3838

3939
# Watch feature

src/book/init.rs

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

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

0 commit comments

Comments
 (0)