mirror of
https://github.com/uutils/uutils-term-grid.git
synced 2026-06-10 16:13:01 -07:00
Replace Filling:: with Self:: for cleaner code
This commit is contained in:
+3
-3
@@ -56,9 +56,9 @@ pub enum Filling {
|
||||
impl Filling {
|
||||
fn width(&self) -> usize {
|
||||
match self {
|
||||
Filling::Spaces(w) => *w,
|
||||
Filling::Text(t) => ansi_width(t),
|
||||
Filling::Tabs { spaces, .. } => *spaces,
|
||||
Self::Spaces(w) => *w,
|
||||
Self::Text(t) => ansi_width(t),
|
||||
Self::Tabs { spaces, .. } => *spaces,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user