diff options
author | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-04-29 18:22:44 -0400 |
---|---|---|
committer | Jiayi Zhao <jeff.no.zhao@gmail.com> | 2019-04-30 11:05:47 -0400 |
commit | 36d8299f224b044139d52c0f65eb66be4c25a5d0 (patch) | |
tree | 5f99fdfff153ab9f39c1d3ed77f9f18ef3c2d5d3 /src/window | |
parent | 4bbe0969006eab7cfe3a47231d5e002b5259e19b (diff) |
cargo clippy
Diffstat (limited to 'src/window')
-rw-r--r-- | src/window/panel.rs | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/window/panel.rs b/src/window/panel.rs index 9189145..44eba9e 100644 --- a/src/window/panel.rs +++ b/src/window/panel.rs @@ -72,11 +72,10 @@ impl JoshutoPanel { let curr_index = dirlist.index.unwrap(); - for i in start..end { + for (i, entry) in dir_contents.iter().enumerate().take(end).skip(start) { let coord: (i32, i32) = (i as i32 - start as i32, 0); ncurses::wmove(win.win, coord.0, coord.1); - let entry = &dir_contents[i]; let mut attr: ncurses::attr_t = 0; if i == curr_index { |