mirror of
https://github.com/starovoid/rxing.git
synced 2026-07-27 21:02:35 +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 first_run = true;
|
||||||
let mut nRows = 0;
|
let mut nRows = 0;
|
||||||
let mut pos = 0;
|
let mut pos = 0;
|
||||||
while pos < string_representation.len() {
|
while pos < string_representation.chars().count() {
|
||||||
if string_representation.chars().nth(pos).unwrap() == '\n'
|
if string_representation.chars().nth(pos).unwrap() == '\n'
|
||||||
|| string_representation.chars().nth(pos).unwrap() == '\r'
|
|| string_representation.chars().nth(pos).unwrap() == '\r'
|
||||||
{
|
{
|
||||||
|
|||||||
Reference in New Issue
Block a user