rust-analyzer/crates/ide-diagnostics
Milo Mirate be30c4daf4 chore: change str_ref_to_string to str_ref_to_owned
ToString is implemented by many different types than &str, and
represents a serialization into string data. The fact that said data is
returned as owned, is an implementation detail.

If merely copying borrowed string data to owned string data is all that
is desired, ToOwned is a much better choice, because if the user later
refactors the code such that the input is no longer an `&str`, then they
will get a compiler error instead of a mysterious change-in-behavior.
2022-07-18 08:38:14 -04:00
..
src chore: change str_ref_to_string to str_ref_to_owned 2022-07-18 08:38:14 -04:00
Cargo.toml Bump either 2022-07-03 10:09:35 +03:00