From 12c085a05729f6f795cc854032f99cdb9b833946 Mon Sep 17 00:00:00 2001 From: Konrad Borowski Date: Mon, 28 Mar 2022 18:37:11 +0200 Subject: [PATCH] Inline u8::is_utf8_char_boundary --- library/core/src/num/mod.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/library/core/src/num/mod.rs b/library/core/src/num/mod.rs index dca8ffa4e2c..c09f642d969 100644 --- a/library/core/src/num/mod.rs +++ b/library/core/src/num/mod.rs @@ -809,6 +809,7 @@ impl u8 { ascii::escape_default(self) } + #[inline] pub(crate) const fn is_utf8_char_boundary(self) -> bool { // This is bit magic equivalent to: b < 128 || b >= 192 (self as i8) >= -0x40