diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-10-13 20:38:19 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-10-13 20:38:19 +0200 |
commit | 1c51fedaeedecd536903982d7dbc663ab9fc2623 (patch) | |
tree | ba22bd4bcb3865dc65e05f6cf90e41e3e82fe3cc /src/util | |
parent | ec1cee9d7e01722b1d87552bb5f7b0cab7602af6 (diff) | |
download | markdown-rs-1c51fedaeedecd536903982d7dbc663ab9fc2623.tar.gz markdown-rs-1c51fedaeedecd536903982d7dbc663ab9fc2623.tar.bz2 markdown-rs-1c51fedaeedecd536903982d7dbc663ab9fc2623.zip |
Refactor some code to improve coverage
Diffstat (limited to 'src/util')
-rw-r--r-- | src/util/encode.rs | 4 |
1 files changed, 2 insertions, 2 deletions
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; |