Closed jcsoo closed 4 years ago
use edn_rs::Edn; use std::str::FromStr; fn main() { let _: Edn = Edn::from_str("nTEST").unwrap();
results in thread 'main' panicked at 'calledResult::unwrap()on anErrvalue: ParseEdn("n could not be parsed")', } src/main.rs:5:41.
thread 'main' panicked at 'called
on an
value: ParseEdn("n could not be parsed")', } src/main.rs:5:41
use edn_rs::Edn; use std::str::FromStr; fn main() { let _: Edn = Edn::from_str("tTEST").unwrap(); }
results in thread 'main' panicked at 'calledResult::unwrap()on anErrvalue: ParseEdn("provided string was nottrueorfalse")', src/main.rs:5:41.
value: ParseEdn("provided string was not
or
")', src/main.rs:5:41
use edn_rs::Edn; use std::str::FromStr; fn main() { let _: Edn = Edn::from_str("fTEST").unwrap(); }
Looking at this
Fixed! https://github.com/naomijub/edn-rs/pull/71
You can use version 0.16.9 for the fix :blush:
0.16.9
results in
thread 'main' panicked at 'called
Result::unwrap()on an
Errvalue: ParseEdn("n could not be parsed")', } src/main.rs:5:41
.results in
thread 'main' panicked at 'called
Result::unwrap()on an
Errvalue: ParseEdn("provided string was not
trueor
false")', src/main.rs:5:41
.results in
thread 'main' panicked at 'called
Result::unwrap()on an
Errvalue: ParseEdn("provided string was not
trueor
false")', src/main.rs:5:41
.