clippy: fix warnings about useless format call and remove references that would be immediately dereferenced by the compiler.
This commit is contained in:
committed by
Andrew Gallant
parent
4d34132365
commit
7ae1f373c2
@@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user