Skip to content

Commit

Permalink
refactor: use UCFS for utf8_chunks in preparation for rust-lang/rus…
Browse files Browse the repository at this point in the history
  • Loading branch information
joboet authored Apr 22, 2024
1 parent 1c7d81c commit ab654d6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/types/buffer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2392,7 +2392,7 @@ impl JanetBuffer<'_> {
/// [`to_str_lossy`]: #method.to_str_lossy
#[inline]
pub fn utf8_chunks(&self) -> Utf8Chunks {
self.as_bytes().utf8_chunks()
ByteSlice::utf8_chunks(self.as_bytes())
}

/// Creates an iterator over the words in this buffer along with
Expand Down
2 changes: 1 addition & 1 deletion src/types/string.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2114,7 +2114,7 @@ impl<'data> JanetString<'data> {
/// [`to_str_lossy`]: #method.to_str_lossy
#[inline]
pub fn utf8_chunks(&self) -> Utf8Chunks {
self.as_bytes().utf8_chunks()
ByteSlice::utf8_chunks(self.as_bytes())
}

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

0 comments on commit ab654d6

Please sign in to comment.