]> git.lizzy.rs Git - rust.git/commit
Simplify find_crlf
authorMichał Muskała <michal@muskala.eu>
Sun, 14 Feb 2021 19:16:42 +0000 (20:16 +0100)
committerMichał Muskała <michal@muskala.eu>
Sun, 14 Feb 2021 19:20:14 +0000 (20:20 +0100)
commite640fa967ca9b1599c1339edfd58cbe27769808f
tree80025690249c78cd336d6a2c3f792cd99c601847
parent425c56aa52b13c010f99cb26202c00517c02f846
Simplify find_crlf

This is both simpler to read and compiles to better code:
https://rust.godbolt.org/z/MxKodv
crates/rust-analyzer/src/line_endings.rs