From 2ff7cb8c091c80d53a7d1bdcb5c37f5ac1d61a55 Mon Sep 17 00:00:00 2001 From: Ryan Kennedy Date: Wed, 18 Mar 2020 20:49:34 -0500 Subject: [PATCH] Clippy --- src/writers/mod.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/writers/mod.rs b/src/writers/mod.rs index b2f497b..02719c2 100644 --- a/src/writers/mod.rs +++ b/src/writers/mod.rs @@ -31,12 +31,12 @@ impl ScreenCharacter { } /// Returns the `character` associated with the `ScreenCharacter`. - pub fn get_character(&self) -> u8 { + pub fn get_character(self) -> u8 { self.character } /// Returns the `color` associated with the `ScreenCharacter`. - pub fn get_color(&self) -> TextModeColor { + pub fn get_color(self) -> TextModeColor { self.color } }