Thank you very much. I’ll change it. I did run cargo clippy, but it didn’t complained anything anymore before I published the code. 🙂One question to return value Option<&String>:is it better to change to Option<&str> or &Option<String> if the value in the struct is a Option<String>? The latter sounds more logical to me.
Rust @programming.dev larix @programming.dev 2y ago since: my first project codeberg.org /larix/since
Thank you very much. I’ll change it. I did run cargo clippy, but it didn’t complained anything anymore before I published the code. 🙂
One question to return value
Option<&String>:is it better to change to
Option<&str>or&Option<String>if the value in the struct is aOption<String>? The latter sounds more logical to me.