diff options
author | Christian Duerr <chrisduerr@users.noreply.github.com> | 2018-07-01 16:31:46 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-01 16:31:46 +0000 |
commit | 12afbd007db8a8995617b3e7ebda3840860bbadc (patch) | |
tree | a0de7c3db93b18b5edbbe44ab2f6b179ae6acc28 /src/ansi.rs | |
parent | d5690f6cc75908d81d0eccf57e62d486c13d34f5 (diff) | |
download | alacritty-12afbd007db8a8995617b3e7ebda3840860bbadc.tar.gz alacritty-12afbd007db8a8995617b3e7ebda3840860bbadc.zip |
Fix clippy issues
Diffstat (limited to 'src/ansi.rs')
-rw-r--r-- | src/ansi.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/ansi.rs b/src/ansi.rs index dbc361a8..e37e25f1 100644 --- a/src/ansi.rs +++ b/src/ansi.rs @@ -561,8 +561,8 @@ pub enum NamedColor { } impl NamedColor { - pub fn to_bright(&self) -> Self { - match *self { + pub fn to_bright(self) -> Self { + match self { NamedColor::Black => NamedColor::BrightBlack, NamedColor::Red => NamedColor::BrightRed, NamedColor::Green => NamedColor::BrightGreen, @@ -583,8 +583,8 @@ impl NamedColor { } } - pub fn to_dim(&self) -> Self { - match *self { + pub fn to_dim(self) -> Self { + match self { NamedColor::Black => NamedColor::DimBlack, NamedColor::Red => NamedColor::DimRed, NamedColor::Green => NamedColor::DimGreen, |