-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Error handling of bad polyline still broken #39
Comments
cc @mattiZed |
Repro (note ommission of #[test]
fn invalid_string() {
let s = "ugh_ugh";
let expected: Result<_, _> = Err("Cannot decode character at index 12".to_string());
assert_eq!(decode_polyline(s, 5), expected);
} |
Well then, I guess it's time to fix the algorithm instead of suppressing the symptoms - I might have a bit of free time for this next week as my org also relies on this crate in some sense. |
Our fix in #37 has not worked: trying to decode the polyline
'ugh_ugh'
gives an out of bounds error on line 142:index out of bounds: the len is 7 but the index is 7
.The text was updated successfully, but these errors were encountered: