]> git.lizzy.rs Git - rust.git/commit
Replace lookup_char_pos with lookup_line
authortopecongiro <seuchida@gmail.com>
Sun, 18 Feb 2018 09:08:21 +0000 (18:08 +0900)
committertopecongiro <seuchida@gmail.com>
Mon, 19 Feb 2018 03:52:40 +0000 (12:52 +0900)
commit15c7e1c52a6b96fac3e41ef1ca2eda3eaf91e0b1
treed9e7521a1121268e787286e00d2f0baf2ba48517
parent383e7e9955fdd988548e316008604c173fd7b369
Replace lookup_char_pos with lookup_line

`lookup_char_pos` wastes time on fetching unused information. We only need a
`FileMap` and line numbers, so `lookup_line` is enough.
rustfmt-core/src/codemap.rs