mirror of
https://github.com/sharkdp/bat.git
synced 2025-02-22 04:48:48 +00:00
Remove unnecessary scope
This commit is contained in:
parent
e30e1bab2e
commit
da09f3877b
@ -84,7 +84,6 @@ impl<'b> Controller<'b> {
|
|||||||
let mut line_number: usize = 1;
|
let mut line_number: usize = 1;
|
||||||
|
|
||||||
while reader.read_until(b'\n', &mut line_buffer)? > 0 {
|
while reader.read_until(b'\n', &mut line_buffer)? > 0 {
|
||||||
{
|
|
||||||
match line_ranges {
|
match line_ranges {
|
||||||
&Some(ref range) => {
|
&Some(ref range) => {
|
||||||
if line_number < range.lower {
|
if line_number < range.lower {
|
||||||
@ -104,7 +103,6 @@ impl<'b> Controller<'b> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
line_number += 1;
|
line_number += 1;
|
||||||
}
|
|
||||||
line_buffer.clear();
|
line_buffer.clear();
|
||||||
}
|
}
|
||||||
Ok(())
|
Ok(())
|
||||||
|
Loading…
x
Reference in New Issue
Block a user