1
0
Fork 0
mirror of https://github.com/helix-editor/helix synced 2024-05-17 02:46:06 +02:00

Address clippy lint.

This commit is contained in:
Blaž Hrastnik 2020-09-13 20:06:53 +09:00
parent b08278807e
commit b827b41efe

View File

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