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
fnmain(){letmut t = TrieBuilder::new();for word in std::fs::read_to_string("words.txt").unwrap().split_whitespace(){if !word.trim().is_empty(){
t.push(word);}}let t = t.build();println!("Loaded");letmut f = File::create_new("words.toml").unwrap();write!(f,"{}", toml::to_string(&t).unwrap()).unwrap();}
Loaded
thread 'main' panicked at src/main.rs:57:41:
called `Result::unwrap()` on an `Err` value: Error { inner: UnsupportedType(Some("unit")) }
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace
Other libraries like postcard also fail, but with deserialization failing instead.
The text was updated successfully, but these errors were encountered:
Steps to reproduce:
Other libraries like
postcard
also fail, but with deserialization failing instead.The text was updated successfully, but these errors were encountered: