Skip to content

Commit fc99efc

Browse files
upgrade toml to 0.9.5 (#6652)
Just keeping dependencies up to date; not looking to get a particular improvement. Co-authored-by: Manish Goregaokar <[email protected]>
1 parent 5e937e0 commit fc99efc

File tree

3 files changed

+36
-35
lines changed

3 files changed

+36
-35
lines changed

Cargo.lock

Lines changed: 33 additions & 31 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
@@ -49,7 +49,7 @@ serde = { version = "1.0.160", features = ["derive"] }
4949
serde_json = "1.0"
5050
term = "0.7"
5151
thiserror = "1.0.40"
52-
toml = "0.7.4"
52+
toml = "0.9.5"
5353
tracing = { version = "0.1.37", default-features = false, features = ["std"] }
5454
tracing-subscriber = { version = "0.3.17", features = ["env-filter"] }
5555
unicode-segmentation = "1.9"

src/config/mod.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -416,9 +416,8 @@ impl Config {
416416
style_edition: Option<StyleEdition>,
417417
version: Option<Version>,
418418
) -> Result<Config, String> {
419-
let parsed: ::toml::Value = toml
420-
.parse()
421-
.map_err(|e| format!("Could not parse TOML: {}", e))?;
419+
let parsed: ::toml::Value =
420+
toml::from_str(toml).map_err(|e| format!("Could not parse TOML: {}", e))?;
422421
let mut err = String::new();
423422
let table = parsed
424423
.as_table()

0 commit comments

Comments
 (0)