Skip to content

Commit

Permalink
fix CI
Browse files Browse the repository at this point in the history
  • Loading branch information
moh-eulith committed Apr 4, 2024
1 parent 825609f commit 97c9169
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/encode/pattern/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -489,9 +489,8 @@ impl<'writer, 'params> StringBasedWriter<'writer, 'params> {
Ok(())
}

fn boundary_or(s: &String, count: usize, or: usize) -> usize {
fn boundary_or(s: &str, count: usize, or: usize) -> usize {
let mut cursor = GraphemeCursor::new(0, s.len(), true);
let s = s.as_str();
let mut start = 0;
for _i in 0..count {
let r = cursor.next_boundary(s, 0);
Expand Down

0 comments on commit 97c9169

Please sign in to comment.