diff options
author | Canop <cano.petrole@gmail.com> | 2020-07-26 09:49:45 +0200 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2020-07-26 09:49:45 +0200 |
commit | 53cc8f0fa652c7e04d04490c0d6cfd84006c58ed (patch) | |
tree | 521320c51166a4289c5bbbceaec8750bc60bfe67 /src/hex | |
parent | 4f2ace728427c4d37cd3996570d14791a5415a20 (diff) |
small code cleaning
Diffstat (limited to 'src/hex')
-rw-r--r-- | src/hex/hex_view.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hex/hex_view.rs b/src/hex/hex_view.rs index 2a706b9..35a3c7a 100644 --- a/src/hex/hex_view.rs +++ b/src/hex/hex_view.rs @@ -147,7 +147,7 @@ impl HexView { } let scrollbar = area.scrollbar(self.scroll as i32, self.line_count() as i32); let scrollbar_fg = styles.scrollbar_thumb.get_fg() - .or(styles.preview.get_fg()) + .or_else(|| styles.preview.get_fg()) .unwrap_or_else(|| Color::White); for y in 0..line_count { w.queue(cursor::MoveTo(area.left, y as u16 + area.top))?; |