From 97c9169e731d675a8c3ce19ae18f4bcdcde41d15 Mon Sep 17 00:00:00 2001 From: Mohammad Rezaei Date: Thu, 4 Apr 2024 15:46:04 -0400 Subject: [PATCH] fix CI --- src/encode/pattern/mod.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/encode/pattern/mod.rs b/src/encode/pattern/mod.rs index bfede0bc..042b985a 100644 --- a/src/encode/pattern/mod.rs +++ b/src/encode/pattern/mod.rs @@ -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);