Skip to content

Commit 9dfe608

Browse files
committed
use UCFS for utf8_chunks in preparation for rust-lang/rust#123909
1 parent 25290ca commit 9dfe608

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/types/buffer.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2392,7 +2392,7 @@ impl JanetBuffer<'_> {
23922392
/// [`to_str_lossy`]: #method.to_str_lossy
23932393
#[inline]
23942394
pub fn utf8_chunks(&self) -> Utf8Chunks {
2395-
self.as_bytes().utf8_chunks()
2395+
ByteSlice::utf8_chunks(self.as_bytes())
23962396
}
23972397

23982398
/// Creates an iterator over the words in this buffer along with

src/types/string.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2114,7 +2114,7 @@ impl<'data> JanetString<'data> {
21142114
/// [`to_str_lossy`]: #method.to_str_lossy
21152115
#[inline]
21162116
pub fn utf8_chunks(&self) -> Utf8Chunks {
2117-
self.as_bytes().utf8_chunks()
2117+
ByteSlice::utf8_chunks(self.as_bytes())
21182118
}
21192119

21202120
/// Creates an iterator over the words in this string along with

0 commit comments

Comments
 (0)