to_string is the way to go, based on the discussion here.
Related Topics
Topic | Replies | Views | Activity | |
---|---|---|---|---|
Why does this value not live long enough? | 6 | 1962 | March 8, 2020 | |
Borrowed value does not live long enough, reading file | 11 | 1140 | January 12, 2023 | |
New to Rust...Getting an error. Pls help | 3 | 818 | October 21, 2021 | |
[Solved] Storing user input in loop? | 5 | 3493 | June 23, 2019 | |
Borrowed value does not live long enough problem in for | 4 | 5360 | January 1, 2022 |