From 85196bfca82bbed163b3ab539af0ebe8c3ee2b1d Mon Sep 17 00:00:00 2001 From: Valerii Hiora Date: Thu, 18 Dec 2014 10:33:20 +0200 Subject: [PATCH] Fixed deprecation warnings on Unicode literals --- src/libserialize/json.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/libserialize/json.rs b/src/libserialize/json.rs index c811a16e2b1..bd64f5aded5 100644 --- a/src/libserialize/json.rs +++ b/src/libserialize/json.rs @@ -2760,9 +2760,9 @@ mod tests { fn test_write_char() { check_encoder_for_simple!('a', "\"a\""); check_encoder_for_simple!('\t', "\"\\t\""); - check_encoder_for_simple!('\u00a0', "\"\u00a0\""); - check_encoder_for_simple!('\uabcd', "\"\uabcd\""); - check_encoder_for_simple!('\U0010ffff', "\"\U0010ffff\""); + check_encoder_for_simple!('\u{00a0}', "\"\u{00a0}\""); + check_encoder_for_simple!('\u{abcd}', "\"\u{abcd}\""); + check_encoder_for_simple!('\u{10ffff}', "\"\u{10ffff}\""); } #[test]