cargo clippy

This commit is contained in:
pedrocarlo
2025-02-10 00:59:20 -03:00
parent fe453ecfc5
commit 41360075ba

View File

@@ -366,7 +366,7 @@ pub fn json_type(value: &OwnedValue, path: Option<&OwnedValue>) -> crate::Result
Val::Removed => unreachable!(),
};
Ok(OwnedValue::Text(Text::json(&val.to_string())))
Ok(OwnedValue::Text(Text::json(val)))
}
/// Returns the value at the given JSON path. If the path does not exist, it returns None.