fix a test

This commit is contained in:
Maybe Waffle 2023-02-02 12:12:37 +04:00
parent c3a3fc4ee2
commit 3c5370548a

View file

@ -495,7 +495,7 @@ pub(crate) mod serde_rgb {
color: [u8; 3], color: [u8; 3],
} }
let json = format!("{}", 0x00AABBCC); let json = format!(r#"{{"color":{}}}"#, 0x00AABBCC);
let Struct { color } = serde_json::from_str(&json).unwrap(); let Struct { color } = serde_json::from_str(&json).unwrap();
assert_eq!(color, [0xAA, 0xBB, 0xCC]) assert_eq!(color, [0xAA, 0xBB, 0xCC])