1
0
mirror of https://github.com/sharkdp/bat.git synced 2025-09-06 13:22:23 +01:00

Major refactoring and cleanup

This commit is contained in:
sharkdp
2018-08-22 22:29:12 +02:00
parent c884c3cc12
commit 9316f2a758
10 changed files with 181 additions and 155 deletions

View File

@@ -14,7 +14,6 @@ pub trait Decoration {
fn width(&self) -> usize;
}
// Line number decoration.
pub struct LineNumberDecoration {
color: Style,
cached_wrap: DecorationText,
@@ -65,7 +64,6 @@ impl Decoration for LineNumberDecoration {
}
}
// Line changes decoration.
pub struct LineChangesDecoration {
cached_none: DecorationText,
cached_added: DecorationText,
@@ -121,7 +119,6 @@ impl Decoration for LineChangesDecoration {
}
}
// Grid border decoration.
pub struct GridBorderDecoration {
cached: DecorationText,
}