aboutsummaryrefslogtreecommitdiff
path: root/src/ansi.rs
diff options
context:
space:
mode:
authorChristian Duerr <chrisduerr@users.noreply.github.com>2018-07-01 16:31:46 +0000
committerGitHub <noreply@github.com>2018-07-01 16:31:46 +0000
commit12afbd007db8a8995617b3e7ebda3840860bbadc (patch)
treea0de7c3db93b18b5edbbe44ab2f6b179ae6acc28 /src/ansi.rs
parentd5690f6cc75908d81d0eccf57e62d486c13d34f5 (diff)
downloadalacritty-12afbd007db8a8995617b3e7ebda3840860bbadc.tar.gz
alacritty-12afbd007db8a8995617b3e7ebda3840860bbadc.zip
Fix clippy issues
Diffstat (limited to 'src/ansi.rs')
-rw-r--r--src/ansi.rs8
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,