diff options
author | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2023-08-25 09:28:20 +0200 |
---|---|---|
committer | Dirkjan Ochtman <dirkjan@ochtman.nl> | 2023-08-25 13:22:05 +0200 |
commit | c96fd996bb61f1b65196187ca6774fd6ab4a17b6 (patch) | |
tree | 837047ced4da89d21b66745b2d28a8e7f1e3a055 | |
parent | 539debd690fe98e160c486290025a9a9a185543c (diff) | |
download | askama-c96fd996bb61f1b65196187ca6774fd6ab4a17b6.tar.gz askama-c96fd996bb61f1b65196187ca6774fd6ab4a17b6.tar.bz2 askama-c96fd996bb61f1b65196187ca6774fd6ab4a17b6.zip |
escape: simplify literals as suggested by clippy
-rw-r--r-- | askama_escape/src/lib.rs | 8 |
1 files changed, 4 insertions, 4 deletions
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 { |