fix: Replace serde_yaml::to_string with serde_json::to_string_yaml (#2087)

This commit is contained in:
Hesam Pakdaman 2024-06-04 22:44:51 +02:00 committed by GitHub
parent 7e665fc5b6
commit 9943c53a70
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 1 additions and 22 deletions

20
Cargo.lock generated
View File

@ -234,7 +234,6 @@ dependencies = [
"semver",
"serde",
"serde_json",
"serde_yaml",
"sysinfo",
"time",
"tiny-bip39",
@ -3281,19 +3280,6 @@ dependencies = [
"syn 2.0.66",
]
[[package]]
name = "serde_yaml"
version = "0.9.34+deprecated"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "6a8b1a1a2ebf674015cc02edccce75287f1a0130d394307b36743c2f5d504b47"
dependencies = [
"indexmap 2.2.6",
"itoa",
"ryu",
"serde",
"unsafe-libyaml",
]
[[package]]
name = "sha1"
version = "0.10.6"
@ -4271,12 +4257,6 @@ dependencies = [
"subtle",
]
[[package]]
name = "unsafe-libyaml"
version = "0.2.11"
source = "registry+https://github.com/rust-lang/crates.io-index"
checksum = "673aac59facbab8a9007c7f6108d11f63b603f7cabff99fabf650fea5c32b861"
[[package]]
name = "untrusted"
version = "0.9.0"

View File

@ -83,7 +83,6 @@ tracing = "0.1"
tracing-subscriber = { workspace = true }
uuid = { workspace = true }
unicode-segmentation = "1.11.0"
serde_yaml = "0.9.34"
sysinfo = "0.30.7"
regex="1.10.4"

View File

@ -349,7 +349,7 @@ pub async fn run(settings: &Settings) -> Result<()> {
checks(&dump);
let dump = serde_yaml::to_string(&dump)?;
let dump = serde_json::to_string_pretty(&dump)?;
println!("\nPlease include the output below with any bug reports or issues\n");
println!("{dump}");