minsung.cho 939777825f fix: remove ambiguous .into() example from strings4
The `"nice weather".into()` line could be solved with either
`string_slice` or `string`. The `string_slice` choice compiled and
passed the exercise while emitting a `clippy::useless_conversion`
warning, so the exercise could pass with a warning still present.

Understanding why `.into()` works for both targets requires the `From`
trait, which rustlings introduces later. Remove the example from the
exercise and solution.

Fixes #2190
2026-05-23 18:27:34 -07:00
..
2024-06-22 12:05:28 +02:00
2024-06-22 12:14:04 +02:00
2025-03-07 19:17:11 -04:00

Strings

Rust has two string types: a string slice (&str) and an owned string (String). We're not going to dictate when you should use which one, but we'll show you how to identify and create them, as well as use them.

Further information