Address clippy lint.
commitb827b41efea1a11ab245c7aac6c12a34501464d5
authorBlaž Hrastnik <blaz@mxxn.io>
dateSun 13 Sep 2020, 20:06 (6 years ago)
parentb082788
helix-core/src/commands.rs+2−3
@@ -80,9 +80,8 @@ pub fn prepend_to_line(state: &mut State, _count: usize) {
8080 let positions: Vec<_> = lines
8181 .into_iter()
8282 .map(|index| {
83− // adjust all positions to the end of the line.
84− let line_start = state.doc.line_to_char(index);
85− line_start
83+ // adjust all positions to the start of the line.
84+ state.doc.line_to_char(index)
8685 })
8786 .collect();
8887