© 2026 LinearBytes Inc.
Search posts, tags, users, and pages
Wilfred Almeida
Backend @Triton One | LFX'23 @ CNCF - Harbor | Rust-NodeJS Backend
I tried putting the menu in a loop.
read_line() appends to the String choice so the newly given input won't be processed.
To deal with this, call the choice.clear() before calling read_line() in the loop.
Anam Ansari
Android and Rust Dev
Correct!