rust-analyzer/crates/ide
Jacob Pratt bd8a903548
Remove unnecessary allocation
The case-insensitive prefix/suffix check can be performed
character-by-character. This allows the check to be done without having
to allocate a new string. As a side effect, it's also no longer
necessary to convert the entire string to lowercase, as it's done as
needed. As the only case equality we're handling is ASCII, this
operation can be further optimized by using byte equality, rather than
character equality.
2021-01-09 21:36:38 -05:00
..
src Remove unnecessary allocation 2021-01-09 21:36:38 -05:00
Cargo.toml Upgrade expect-test to 1.1 2021-01-03 14:43:29 +01:00