From b416f1398fa19b4f1fd9bc6418ea32e340d8379c Mon Sep 17 00:00:00 2001 From: Esteban Küber Date: Thu, 27 Dec 2018 11:21:47 -0800 Subject: Use structured suggestion for braceless unicode escape squence --- src/libsyntax_ext/format.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libsyntax_ext') diff --git a/src/libsyntax_ext/format.rs b/src/libsyntax_ext/format.rs index 3a5f0ec07e7..c11f27f3ed5 100644 --- a/src/libsyntax_ext/format.rs +++ b/src/libsyntax_ext/format.rs @@ -845,8 +845,8 @@ pub fn expand_preparsed_format_args(ecx: &mut ExtCtxt, } } else if next_c.is_digit(16) { skips.push(next_pos); - // We suggest adding `{` and `}` when appropriate, accept it here as if it - // were correct + // We suggest adding `{` and `}` when appropriate, accept it here as if + // it were correct let mut i = 0; // consume up to 6 hexanumeric chars while let (Some((next_pos, c)), _) = (s.next(), i < 6) { if c.is_digit(16) { -- cgit 1.4.1-3-g733a5