web: the library checks for wasm32 (carried)

This commit is contained in:
ZacharyZhang-NY committed 2026-09-29 19:16:41 -04:00
1 parent fe467d2bfe
commit a03df0987c
44 files changed
+141 -104

No files matched your search

+2 -4
View File
@@ -1,9 +1,7 @@
use std::{
ops::Range,
time::{Duration, Instant},
};
use std::{ops::Range, time::Duration};
use unicode_segmentation::UnicodeSegmentation;
use web_time::Instant;
pub(crate) fn prev_grapheme(text: &str, offset: usize) -> usize {
text.grapheme_indices(true)