From dc810c15dd49c9b2b1ce17195b8d4bc4bf5277a4 Mon Sep 17 00:00:00 2001 From: Thinkofdeath Date: Tue, 29 Sep 2015 20:09:36 +0100 Subject: [PATCH] Tidy up --- protocol/src/format.rs | 4 ++-- protocol/src/types/bit/set.rs | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/protocol/src/format.rs b/protocol/src/format.rs index f0c9cba..50dc3f9 100644 --- a/protocol/src/format.rs +++ b/protocol/src/format.rs @@ -277,8 +277,8 @@ fn test_color_from() { const LEGACY_CHAR: char = 'ยง'; pub fn convert_legacy(c: &mut Component) { - match c { - &mut Component::Text(ref mut txt) => { + match *c { + Component::Text(ref mut txt) => { if let Some(ref mut extra) = txt.modifier.extra.as_mut() { for e in extra.iter_mut() { convert_legacy(e); diff --git a/protocol/src/types/bit/set.rs b/protocol/src/types/bit/set.rs index 995ce69..e74f6c5 100644 --- a/protocol/src/types/bit/set.rs +++ b/protocol/src/types/bit/set.rs @@ -51,6 +51,6 @@ impl Set { } pub fn get(&mut self, i: usize) -> bool { - return (self.data[i>>6] & (1 << (i & 0x3F))) != 0 + (self.data[i>>6] & (1 << (i & 0x3F))) != 0 } }