mirror of
https://github.com/sharkdp/bat.git
synced 2025-02-21 12:28:30 +00:00
Remove unused lifetimes
This commit is contained in:
parent
b2b932f3ed
commit
ea27053a63
@ -102,7 +102,7 @@ impl<'a> Printer<'a> {
|
|||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
||||||
fn print_line_number<'s>(&self, line_number: usize) -> Option<String> {
|
fn print_line_number(&self, line_number: usize) -> Option<String> {
|
||||||
if self.options.output_components.numbers() {
|
if self.options.output_components.numbers() {
|
||||||
Some(
|
Some(
|
||||||
self.colors
|
self.colors
|
||||||
@ -117,7 +117,7 @@ impl<'a> Printer<'a> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn print_git_marker<'s>(&self, line_number: usize) -> Option<String> {
|
fn print_git_marker(&self, line_number: usize) -> Option<String> {
|
||||||
if self.options.output_components.changes() {
|
if self.options.output_components.changes() {
|
||||||
Some(
|
Some(
|
||||||
if let Some(ref changes) = self.line_changes {
|
if let Some(ref changes) = self.line_changes {
|
||||||
@ -139,7 +139,7 @@ impl<'a> Printer<'a> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fn print_line_border<'s>(&self) -> Option<String> {
|
fn print_line_border(&self) -> Option<String> {
|
||||||
if self.options.output_components.grid() {
|
if self.options.output_components.grid() {
|
||||||
Some(self.colors.grid.paint("│").to_string())
|
Some(self.colors.grid.paint("│").to_string())
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user