Skip to content

Commit 0fad66c

Browse files
clippy
1 parent 6d68252 commit 0fad66c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/bpe-openai/src/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ mod tests {
7878
.map(|i| i as u32)
7979
.collect();
8080

81-
let without_splitting = BPE_CL100K.encode_via_backtracking(&input);
81+
let without_splitting = BPE_CL100K.encode_via_backtracking(input);
8282
assert_ne!(without_splitting, expected);
8383

8484
let pat = "(?i:'s|'t|'re|'ve|'m|'ll|'d)|[^\\r\\n\\p{L}\\p{N}]?\\p{L}+|\\p{N}{1,3}| ?[^\\s\\p{L}\\p{N}]+[\\r\\n]*|\\s*[\\r\\n]+|\\s+(?!\\S)|\\s+";

0 commit comments

Comments
 (0)