Codify &str -> String conversions in code style

This commit is contained in:
Maybe Waffle 2022-09-29 19:05:31 +04:00
parent 36f0226751
commit 5e87accfc7

View file

@ -196,3 +196,9 @@ warn!("Everything is on fire");
``` ```
**Rationale:** uniformity, it's clearer which log crate is used. **Rationale:** uniformity, it's clearer which log crate is used.
## `&str` -> `String` conversion
Prefer using `.to_owned()`, rather than `.to_string()`, `.into()`, `String::from`, etc.
**Rationale:** uniformity, intent clarity.