diff options
author | Canop <cano.petrole@gmail.com> | 2020-12-11 13:12:05 +0100 |
---|---|---|
committer | Canop <cano.petrole@gmail.com> | 2020-12-11 13:12:05 +0100 |
commit | aab4f13284e2b61e485aeb898b84e2332c968227 (patch) | |
tree | ec5b936355017bf05f70ce9cf6fe75f5e2e239e6 /src/hex | |
parent | f6efb7456752ac0fcd603d5c2afbb9a0118f630c (diff) |
use serde's derive to deserialize conf
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 0888a67..b230060 100644 --- a/src/hex/hex_view.rs +++ b/src/hex/hex_view.rs @@ -150,7 +150,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_else(|| styles.preview.get_fg()) - .unwrap_or_else(|| Color::White); + .unwrap_or(Color::White); for y in 0..line_count { w.queue(cursor::MoveTo(area.left, y as u16 + area.top))?; let mut cw = CropWriter::new(w, area.width as usize - 1); // -1 for scrollbar |