From 029bb39529b15d08a1721ce97871d0ed030db7a2 Mon Sep 17 00:00:00 2001 From: Sylvestre Ledru Date: Mon, 9 Mar 2026 22:34:08 +0100 Subject: [PATCH] Replace Filling:: with Self:: for cleaner code --- src/lib.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 4b8c46d..610afda 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -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, } } }