mirror of
https://github.com/sharkdp/bat.git
synced 2025-08-15 18:53:12 +02:00
Remove unnecessary scope
This commit is contained in:
@ -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(())
|
||||||
|
Reference in New Issue
Block a user