mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-30 21:16:27 +03:00
cad617bba0
use vec![] instead of Vec::new() + push() avoid redundant clones use chars instead of &str for single char patterns in ends_with() and starts_with() allocate some Vecs with capacity to avoid unneccessary resizing