diff options
author | Titus Wormer <tituswormer@gmail.com> | 2022-07-07 18:49:00 +0200 |
---|---|---|
committer | Titus Wormer <tituswormer@gmail.com> | 2022-07-07 18:49:00 +0200 |
commit | fdb1f1694f44cfbc59d303a10371300b48d74627 (patch) | |
tree | 837fe930a9d4c61336a2793e4c9893c074624d9c /src/util/decode_character_reference.rs | |
parent | 5c1b428c5a14731e00c9b45c534059f1057319e2 (diff) | |
download | markdown-rs-fdb1f1694f44cfbc59d303a10371300b48d74627.tar.gz markdown-rs-fdb1f1694f44cfbc59d303a10371300b48d74627.tar.bz2 markdown-rs-fdb1f1694f44cfbc59d303a10371300b48d74627.zip |
Refactor to use `char::REPLACEMENT_CHARACTER`
Diffstat (limited to '')
-rw-r--r-- | src/util/decode_character_reference.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/util/decode_character_reference.rs b/src/util/decode_character_reference.rs index 9be531b..874df4d 100644 --- a/src/util/decode_character_reference.rs +++ b/src/util/decode_character_reference.rs @@ -96,7 +96,7 @@ pub fn decode_numeric(value: &str, radix: u32) -> char { // Out of range code > 0x0010_ffff { - '�' + char::REPLACEMENT_CHARACTER } else { char::from_u32(code).expect("expected valid `code`") } |