Skip to content

Commit 1586a22

Browse files
committed
Update Rust crate toml to 0.7.3
Fixes #3241.
1 parent e5964f0 commit 1586a22

File tree

5 files changed

+9
-6
lines changed

5 files changed

+9
-6
lines changed

Cargo.lock

Lines changed: 5 additions & 2 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
@@ -70,7 +70,7 @@ tempfile.workspace = true
7070
term = "=0.5.1"
7171
thiserror.workspace = true
7272
threadpool = "1"
73-
toml = "0.5"
73+
toml = "0.7"
7474
url.workspace = true
7575
wait-timeout = "0.2"
7676
xz2 = "0.1.3"

src/dist/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ impl Config {
4848
}
4949

5050
pub(crate) fn stringify(self) -> String {
51-
toml::Value::Table(self.into_toml()).to_string()
51+
self.into_toml().to_string()
5252
}
5353

5454
fn toml_to_components(arr: toml::value::Array, path: &str) -> Result<Vec<Component>> {

src/dist/manifest.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ impl Manifest {
117117
Ok(manifest)
118118
}
119119
pub fn stringify(self) -> String {
120-
toml::Value::Table(self.into_toml()).to_string()
120+
self.into_toml().to_string()
121121
}
122122

123123
pub(crate) fn from_toml(mut table: toml::value::Table, path: &str) -> Result<Self> {

src/settings.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ impl Settings {
143143
}
144144

145145
pub(crate) fn stringify(self) -> String {
146-
toml::Value::Table(self.into_toml()).to_string()
146+
self.into_toml().to_string()
147147
}
148148

149149
pub(crate) fn from_toml(mut table: toml::value::Table, path: &str) -> Result<Self> {

0 commit comments

Comments
 (0)