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 } }