This commit is contained in:
Thinkofdeath 2015-09-29 20:09:36 +01:00
parent 70a3683df2
commit dc810c15dd
2 changed files with 3 additions and 3 deletions

View File

@ -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);

View File

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