From 3c5370548aaf293460bb03c35f04237524212f6a Mon Sep 17 00:00:00 2001 From: Maybe Waffle Date: Thu, 2 Feb 2023 12:12:37 +0400 Subject: [PATCH] fix a test --- crates/teloxide-core/src/types.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/teloxide-core/src/types.rs b/crates/teloxide-core/src/types.rs index 8737244a..fd2a428c 100644 --- a/crates/teloxide-core/src/types.rs +++ b/crates/teloxide-core/src/types.rs @@ -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])