diff --git a/src/raw.rs b/src/raw.rs index f81d943a5..f0e56ea44 100644 --- a/src/raw.rs +++ b/src/raw.rs @@ -118,6 +118,12 @@ pub struct RawValue { json: str, } +impl PartialEq for RawValue { + fn eq(&self, other: &Self) -> bool { + self.json == other.json + } +} + impl RawValue { const fn from_borrowed(json: &str) -> &Self { unsafe { mem::transmute::<&str, &RawValue>(json) }