Codify &str -> String conversions in code style

Former-commit-id: 5e87accfc7
This commit is contained in:
Maybe Waffle 2022-09-29 19:05:31 +04:00
parent 45c1324cb3
commit bb4abf6d98

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.