You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$ cargo run
Compiling annotate-snippets v0.9.0
Compiling rust-test v0.1.0 (/home/mario/Documents/rust-test)
Finished dev [unoptimized + debuginfo] target(s) in 0.92s
Running `target/debug/rust-test`
thread 'main' panicked at 'SourceAnnotation range `(205, 207)` is bigger than source length `195`', /home/mario/.cargo/registry/src/github.com-1ecc6299db9ec823/annotate-snippets-0.9.0/src/display_list/from_snippet.rs:287:9
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Appears to be an issue with the index into the source, which is in fact 195 characters long. Based on the error message I guess it should be highlighting the 22, which would be (187, 189), not (205, 207).
The text was updated successfully, but these errors were encountered:
digama0
added a commit
to digama0/annotate-snippets-rs
that referenced
this issue
Mar 6, 2021
Appears to be an issue with the index into the source, which is in fact 195 characters long. Based on the error message I guess it should be highlighting the
22
, which would be(187, 189)
, not(205, 207)
.The text was updated successfully, but these errors were encountered: