From c96fd996bb61f1b65196187ca6774fd6ab4a17b6 Mon Sep 17 00:00:00 2001 From: Dirkjan Ochtman Date: Fri, 25 Aug 2023 09:28:20 +0200 Subject: escape: simplify literals as suggested by clippy --- askama_escape/src/lib.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'askama_escape/src') diff --git a/askama_escape/src/lib.rs b/askama_escape/src/lib.rs index e09a32d..a831066 100644 --- a/askama_escape/src/lib.rs +++ b/askama_escape/src/lib.rs @@ -187,10 +187,10 @@ impl std::io::Write for JsonEscapeBuffer { let mut last = 0; for (index, byte) in bytes.iter().enumerate() { let escaped = match byte { - b'&' => Some(br#"\u0026"#), - b'\'' => Some(br#"\u0027"#), - b'<' => Some(br#"\u003c"#), - b'>' => Some(br#"\u003e"#), + b'&' => Some(br"\u0026"), + b'\'' => Some(br"\u0027"), + b'<' => Some(br"\u003c"), + b'>' => Some(br"\u003e"), _ => None, }; if let Some(escaped) = escaped { -- cgit