clippy: fix warnings about useless format call and remove references that would be immediately dereferenced by the compiler.

This commit is contained in:
Matthias Krüger
2017-11-19 17:26:06 +01:00
committed by Andrew Gallant
parent 4d34132365
commit 7ae1f373c2
3 changed files with 4 additions and 4 deletions

View File

@@ -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;
}