summaryrefslogtreecommitdiffstats
path: root/src/file/format/json5.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/file/format/json5.rs')
-rw-r--r--src/file/format/json5.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/file/format/json5.rs b/src/file/format/json5.rs
index 33a3135..ea3390f 100644
--- a/src/file/format/json5.rs
+++ b/src/file/format/json5.rs
@@ -20,7 +20,7 @@ pub fn parse(
uri: Option<&String>,
text: &str,
) -> Result<HashMap<String, Value>, Box<dyn Error + Send + Sync>> {
- match json5_rs::from_str::<Val>(&text)? {
+ match json5_rs::from_str::<Val>(text)? {
Val::String(ref value) => Err(Unexpected::Str(value.clone())),
Val::Integer(value) => Err(Unexpected::Integer(value)),
Val::Float(value) => Err(Unexpected::Float(value)),