Replace Filling:: with Self:: for cleaner code

This commit is contained in:
Sylvestre Ledru
2026-03-09 22:34:08 +01:00
parent 7f50d5a4ad
commit 029bb39529
+3 -3
View File
@@ -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,
}
}
}