News for hackers. Stuff that matters.
Re:Rust 1.49.0 by ChrisSD on Thursday December 31, 2020 @10:52AM (#25593733)
Right but as a general rule you'll mostly only be using `s.into()` to get a `String` from an `&str`. Or `&s` to deref `String` to a `&str`. I'm not sure why this would require a crate to handle?

The other ways are more "advanced", for when you're dealing with (for example) potentially unsafe coercions or you don't want to rely on inference for some reason.

Re:Rust 1.49.0 by steveklabnik on Thursday December 31, 2020 @10:58AM (#25593806)
I agree with you that I'm not sure what your parent is talking about, I'm just here to give all the examples. Deref coercion takes 99% of my String -> &str conversions, and I reborrow for that rare 1%, personally.
Re:Rust 1.49.0 by ChrisSD on Thursday December 31, 2020 @11:17AM (#25593981)
Yeah sorry, I'm just really confused about what's being asked for.