rust-analyzer/crates/ide-diagnostics/src
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
..
handlers chore: change str_ref_to_string to str_ref_to_owned 2022-07-18 08:38:14 -04:00
tests update crates names in slow-tests/tidy.rs 2022-05-01 10:48:58 +00:00
lib.rs fix: Check for the correct proc-macro settings in missing proc-macro diagnostics 2022-06-14 11:00:06 +02:00
tests.rs style: rename crates to kebab case 2022-05-01 10:48:58 +00:00