mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-26 04:12:34 +00:00
len should be chars()count()
This commit is contained in:
@@ -133,7 +133,7 @@ impl BitMatrix {
|
||||
let mut first_run = true;
|
||||
let mut nRows = 0;
|
||||
let mut pos = 0;
|
||||
while pos < string_representation.len() {
|
||||
while pos < string_representation.chars().count() {
|
||||
if string_representation.chars().nth(pos).unwrap() == '\n'
|
||||
|| string_representation.chars().nth(pos).unwrap() == '\r'
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user