Address clippy lint.

imgbot
Blaž Hrastnik 4 years ago
parent b08278807e
commit b827b41efe

@ -80,9 +80,8 @@ pub fn prepend_to_line(state: &mut State, _count: usize) {
let positions: Vec<_> = lines let positions: Vec<_> = lines
.into_iter() .into_iter()
.map(|index| { .map(|index| {
// adjust all positions to the end of the line. // adjust all positions to the start of the line.
let line_start = state.doc.line_to_char(index); state.doc.line_to_char(index)
line_start
}) })
.collect(); .collect();

Loading…
Cancel
Save