Skip to content

Commit 1a121e7

Browse files
committed
refactor: Don't rename json5
1 parent 0f4bd7f commit 1a121e7

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ default = ["toml", "json", "yaml", "ini", "ron", "json5", "convert-case", "async
124124
json = ["serde_json"]
125125
yaml = ["yaml-rust2"]
126126
ini = ["rust-ini"]
127-
json5 = ["json5_rs", "dep:serde-untagged"]
127+
json5 = ["dep:json5", "dep:serde-untagged"]
128128
corn = ["dep:corn"]
129129
convert-case = ["convert_case"]
130130
preserve_order = ["indexmap", "toml?/preserve_order", "serde_json?/preserve_order", "ron?/indexmap"]
@@ -140,7 +140,7 @@ serde_json = { version = "1.0.149", optional = true }
140140
yaml-rust2 = { version = "0.10.4", optional = true }
141141
rust-ini = { version = "0.21.3", optional = true }
142142
ron = { version = "0.12.0", optional = true }
143-
json5_rs = { version = "0.4.1", optional = true, package = "json5" }
143+
json5 = { version = "0.4.1", optional = true }
144144
corn = { version = "0.10.1", optional = true, package = "libcorn" }
145145
indexmap = { version = "2.11.4", features = ["serde"], optional = true }
146146
convert_case = { version = "0.6.0", optional = true }

src/file/format/json5.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ pub(crate) fn parse(
3636
uri: Option<&String>,
3737
text: &str,
3838
) -> Result<Map<String, Value>, Box<dyn Error + Send + Sync>> {
39-
let value = from_json5_value(uri, json5_rs::from_str::<Val>(text)?);
39+
let value = from_json5_value(uri, json5::from_str::<Val>(text)?);
4040
format::extract_root_table(uri, value)
4141
}
4242

0 commit comments

Comments
 (0)