summaryrefslogtreecommitdiffstats
path: root/src/hex
diff options
context:
space:
mode:
authorCanop <cano.petrole@gmail.com>2022-11-04 10:08:17 +0100
committerCanop <cano.petrole@gmail.com>2022-11-04 10:08:17 +0100
commit58f87dc7a595d74b51c8a9da2beb98a981bfb62b (patch)
tree928a7d7713893620d7c2c28efd357579bbe0e19a /src/hex
parentae69ca7c0ee7b0999afebc8af8624dfb01f22ea2 (diff)
version 1.16.2
Diffstat (limited to 'src/hex')
-rw-r--r--src/hex/hex_view.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hex/hex_view.rs b/src/hex/hex_view.rs
index 196018a..d2edf98 100644
--- a/src/hex/hex_view.rs
+++ b/src/hex/hex_view.rs
@@ -44,7 +44,7 @@ impl HexView {
})
}
pub fn line_count(&self) -> usize {
- self.len / 16 + if self.len % 16 != 0 { 1 } else { 0 }
+ self.len / 16 + usize::from(self.len % 16 != 0)
}
pub fn try_scroll(
&mut self,