bors 567a5e9ef7 Auto merge of #12796 - mmirate:patch-1, r=Veykril
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 resulting from the lack of a parameter for a pre-allocated buffer.

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 runtime-behavioral change.
2022-07-18 22:19:52 +00:00
..
2022-07-08 15:44:49 +02:00
2022-07-03 10:09:35 +03:00
2022-07-08 15:44:49 +02:00
2022-07-03 10:09:35 +03:00
2022-07-08 15:44:49 +02:00
2022-07-08 15:44:49 +02:00
2022-06-15 18:35:48 +02:00
2022-07-08 15:44:49 +02:00
2022-06-25 10:25:56 +08:00
2022-07-03 10:09:35 +03:00
2022-07-03 09:56:58 +03:00