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/codes.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/util/codes.rs') diff --git a/src/util/codes.rs b/src/util/codes.rs index 8a46d02..9b6ad39 100644 --- a/src/util/codes.rs +++ b/src/util/codes.rs @@ -35,7 +35,7 @@ pub fn parse(value: &str) -> Vec { // Send a replacement character. '\0' => { column += 1; - codes.push(Code::Char('�')); + codes.push(Code::Char(char::REPLACEMENT_CHARACTER)); } // Send a tab and virtual spaces. '\t' => { -- cgit