aboutsummaryrefslogtreecommitdiff
path: root/helix-term/src
diff options
context:
space:
mode:
authorBlaž Hrastnik2020-09-29 09:02:27 +0000
committerBlaž Hrastnik2020-09-29 09:07:05 +0000
commit3feb00283df92b8865c9cf7baba0e2ab06dcc028 (patch)
treec174b36de7866b7710a7f29cca95d9f6be66dcaa /helix-term/src
parent1bb01d27aed8b046ff1cb41d4932c303d3b4ad0d (diff)
clippy warnings
Diffstat (limited to 'helix-term/src')
-rw-r--r--helix-term/src/editor.rs7
1 files changed, 3 insertions, 4 deletions
diff --git a/helix-term/src/editor.rs b/helix-term/src/editor.rs
index 131c285e..a3d6a04e 100644
--- a/helix-term/src/editor.rs
+++ b/helix-term/src/editor.rs
@@ -209,12 +209,11 @@ impl Editor {
}
}
- let mut line = 0;
let style: Style = view.theme.get("ui.linenr").into();
- for i in view.first_line..(last_line as u16) {
+ for (i, line) in (view.first_line..(last_line as u16)).enumerate() {
self.surface
- .set_stringn(0, line, format!("{:>5}", i + 1), 5, style); // lavender
- line += 1;
+ .set_stringn(0, line, format!("{:>5}", i + 1), 5, style);
+ // lavender
}
// let lines = state