summaryrefslogtreecommitdiffstats
path: root/src/search_buffer.rs
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2017-11-19 17:26:06 +0100
committerAndrew Gallant <jamslam@gmail.com>2017-11-22 10:50:28 -0500
commit7ae1f373c2b899c7db5f8106dec4d7423b1d8364 (patch)
tree2106b970d1fa6c20da9f807ed3c1f9dbf5fddb82 /src/search_buffer.rs
parent4d34132365a00219f0c0baca9e05b119621dbd79 (diff)
clippy: fix warnings about useless format call and remove references that would be immediately dereferenced by the compiler.
Diffstat (limited to 'src/search_buffer.rs')
-rw-r--r--src/search_buffer.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/search_buffer.rs b/src/search_buffer.rs
index d2e3692a..11b561ea 100644
--- a/src/search_buffer.rs
+++ b/src/search_buffer.rs
@@ -113,7 +113,7 @@ impl<'a, W: WriteColor> BufferSearcher<'a, W> {
#[inline(never)]
pub fn run(mut self) -> u64 {
- let binary_upto = cmp::min(10240, self.buf.len());
+ let binary_upto = cmp::min(10_240, self.buf.len());
if !self.opts.text && is_binary(&self.buf[..binary_upto], true) {
return 0;
}