aboutsummaryrefslogtreecommitdiffstats
path: root/askama_escape/src
diff options
context:
space:
mode:
authorLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2023-08-25 09:28:20 +0200
committerLibravatar Dirkjan Ochtman <dirkjan@ochtman.nl>2023-08-25 13:22:05 +0200
commitc96fd996bb61f1b65196187ca6774fd6ab4a17b6 (patch)
tree837047ced4da89d21b66745b2d28a8e7f1e3a055 /askama_escape/src
parent539debd690fe98e160c486290025a9a9a185543c (diff)
downloadaskama-c96fd996bb61f1b65196187ca6774fd6ab4a17b6.tar.gz
askama-c96fd996bb61f1b65196187ca6774fd6ab4a17b6.tar.bz2
askama-c96fd996bb61f1b65196187ca6774fd6ab4a17b6.zip
escape: simplify literals as suggested by clippy
Diffstat (limited to 'askama_escape/src')
-rw-r--r--askama_escape/src/lib.rs8
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 {