1
0
mirror of https://github.com/sharkdp/bat synced 2026-08-10 20:01:45 +00: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
-3
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,
}