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/config.rs | |
parent | d5690f6cc75908d81d0eccf57e62d486c13d34f5 (diff) | |
download | r-alacritty-12afbd007db8a8995617b3e7ebda3840860bbadc.tar.gz r-alacritty-12afbd007db8a8995617b3e7ebda3840860bbadc.tar.bz2 r-alacritty-12afbd007db8a8995617b3e7ebda3840860bbadc.zip |
Fix clippy issues
Diffstat (limited to 'src/config.rs')
-rw-r--r-- | src/config.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/config.rs b/src/config.rs index 539edb61..cdf1dc21 100644 --- a/src/config.rs +++ b/src/config.rs @@ -242,7 +242,7 @@ impl Alpha { } #[inline] - pub fn get(&self) -> f32 { + pub fn get(self) -> f32 { self.0 } @@ -1925,10 +1925,10 @@ enum Key { } impl Key { - fn to_glutin_key(&self) -> ::glutin::VirtualKeyCode { + fn to_glutin_key(self) -> ::glutin::VirtualKeyCode { use ::glutin::VirtualKeyCode::*; // Thank you, vim macros! - match *self { + match self { Key::Key1 => Key1, Key::Key2 => Key2, Key::Key3 => Key3, |