mirror of
https://github.com/teloxide/teloxide.git
synced 2024-12-22 14:35:36 +01:00
fix a test
This commit is contained in:
parent
c3a3fc4ee2
commit
3c5370548a
1 changed files with 1 additions and 1 deletions
|
@ -495,7 +495,7 @@ pub(crate) mod serde_rgb {
|
|||
color: [u8; 3],
|
||||
}
|
||||
|
||||
let json = format!("{}", 0x00AABBCC);
|
||||
let json = format!(r#"{{"color":{}}}"#, 0x00AABBCC);
|
||||
let Struct { color } = serde_json::from_str(&json).unwrap();
|
||||
|
||||
assert_eq!(color, [0xAA, 0xBB, 0xCC])
|
||||
|
|
Loading…
Reference in a new issue