From 484b907947fb4b619d00fb800ce85273f66166be Mon Sep 17 00:00:00 2001 From: sxyazi Date: Mon, 10 Mar 2025 14:35:02 +0800 Subject: [PATCH] Fix CI --- yazi-shared/src/utf8.rs | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/yazi-shared/src/utf8.rs b/yazi-shared/src/utf8.rs index aff6183f..6bf021d7 100644 --- a/yazi-shared/src/utf8.rs +++ b/yazi-shared/src/utf8.rs @@ -32,21 +32,6 @@ pub const fn utf8_char_width(b: u8) -> usize { UTF8_CHAR_WIDTH[b as usize] as us /// the character level and can still visually split graphemes, even though the /// underlying characters aren't split. For example, the emoji ๐Ÿง‘โ€๐Ÿ”ฌ (scientist) /// could be split so that the string only includes ๐Ÿง‘ (person) instead. -/// -/// [`is_char_boundary(x)`]: Self::is_char_boundary -/// -/// # Examples -/// -/// ``` -/// #![feature(round_char_boundary)] -/// let s = "โค๏ธ๐Ÿงก๐Ÿ’›๐Ÿ’š๐Ÿ’™๐Ÿ’œ"; -/// assert_eq!(s.len(), 26); -/// assert!(!s.is_char_boundary(13)); -/// -/// let closest = s.floor_char_boundary(13); -/// assert_eq!(closest, 10); -/// assert_eq!(&s[..closest], "โค๏ธ๐Ÿงก"); -/// ``` #[inline] pub fn floor_char_boundary(s: &str, index: usize) -> usize { if index >= s.len() {