rust-si
rust-si copied to clipboard
Int parsing doesn't work on windows?
This code crashes with this error:
let Count: usize = read!("{}\n");
thread 'main' panicked at src\main.rs:44:24:
called 'Result::unwrap()' on an 'Err' value: Parse("1\r", "__try_read_var__")
I don't submit issues very often, so please tell me if I'm doing anything wrong
Looks like CI doesn't even run on windows 😱
Unfortunately I have not maintained this crate in years, I don't even remember how it works in detail, so unless someone comes along and reproduces your issue and fixes it, I don't think it'll get fixed in the next few years
Does it work if you replace line 95 in lib with this?
Some(c) => iter
.skip_while(|ch| WHITESPACES.contains(ch))
.take_while(|&ch| ch != c && !WHITESPACES.contains(ch))
.collect(),
idk, but if you try it out and it works, open a PR, i'll land it and publish a patch release
okay nvm I give up