Skip to content

Commit

Permalink
use 'Self' keyword (clippy::use_self)
Browse files Browse the repository at this point in the history
  • Loading branch information
daniel.eades authored and Byron committed Aug 20, 2024
1 parent 5745ce5 commit 1a3029f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -33,10 +33,10 @@ pub enum Alignment {
impl<'a> From<&'a TableAlignment> for Alignment {
fn from(s: &'a TableAlignment) -> Self {
match *s {
TableAlignment::None => Alignment::None,
TableAlignment::Left => Alignment::Left,
TableAlignment::Center => Alignment::Center,
TableAlignment::Right => Alignment::Right,
TableAlignment::None => Self::None,
TableAlignment::Left => Self::Left,
TableAlignment::Center => Self::Center,
TableAlignment::Right => Self::Right,
}
}
}
Expand Down

0 comments on commit 1a3029f

Please sign in to comment.