From 1c51fedaeedecd536903982d7dbc663ab9fc2623 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Thu, 13 Oct 2022 20:38:19 +0200 Subject: Refactor some code to improve coverage --- src/util/encode.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/util/encode.rs') diff --git a/src/util/encode.rs b/src/util/encode.rs index a26d954..51eadaf 100644 --- a/src/util/encode.rs +++ b/src/util/encode.rs @@ -39,8 +39,8 @@ pub fn encode(value: &str, encode_html: bool) -> String { b'&' => "&", b'"' => """, b'<' => "<", - b'>' => ">", - _ => panic!("impossible"), + // `b'>'` + _ => ">", }); start = index + 1; -- cgit