rust/library/core
Matthias Krüger 827b540424
Rollup merge of #89694 - jkugelman:must-use-string-transforms, r=joshtriplett
Add #[must_use] to string/char transformation methods

These methods could be misconstrued as modifying their arguments instead of returning new values.

Where possible I made the note recommend a method that does mutate in place.

Parent issue: #89692
2021-10-09 11:56:07 +02:00
..
benches
primitive_docs
src Rollup merge of #89694 - jkugelman:must-use-string-transforms, r=joshtriplett 2021-10-09 11:56:07 +02:00
tests Revert "Stabilize Iterator::intersperse()" 2021-10-07 10:39:36 -07:00
Cargo.toml