about summary refs log tree commit diff
diff options
context:
space:
mode:
authorKonrad Borowski <konrad@borowski.pw>2022-03-28 18:37:11 +0200
committerKonrad Borowski <konrad@borowski.pw>2022-03-28 18:37:11 +0200
commit12c085a05729f6f795cc854032f99cdb9b833946 (patch)
treec836e6c9995c9ee07530b613710be3e5b07e6ecf
parent2d37f38f872859b2b096772765a7987199c852c4 (diff)
downloadrust-12c085a05729f6f795cc854032f99cdb9b833946.tar.gz
rust-12c085a05729f6f795cc854032f99cdb9b833946.zip
Inline u8::is_utf8_char_boundary
-rw-r--r--library/core/src/num/mod.rs1
1 files changed, 1 insertions, 0 deletions
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