From fdb1f1694f44cfbc59d303a10371300b48d74627 Mon Sep 17 00:00:00 2001 From: Titus Wormer Date: Thu, 7 Jul 2022 18:49:00 +0200 Subject: Refactor to use `char::REPLACEMENT_CHARACTER` --- src/util/decode_character_reference.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/util/decode_character_reference.rs') 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`") } -- cgit