Tidy up
This commit is contained in:
parent
70a3683df2
commit
dc810c15dd
|
@ -277,8 +277,8 @@ fn test_color_from() {
|
||||||
const LEGACY_CHAR: char = '§';
|
const LEGACY_CHAR: char = '§';
|
||||||
|
|
||||||
pub fn convert_legacy(c: &mut Component) {
|
pub fn convert_legacy(c: &mut Component) {
|
||||||
match c {
|
match *c {
|
||||||
&mut Component::Text(ref mut txt) => {
|
Component::Text(ref mut txt) => {
|
||||||
if let Some(ref mut extra) = txt.modifier.extra.as_mut() {
|
if let Some(ref mut extra) = txt.modifier.extra.as_mut() {
|
||||||
for e in extra.iter_mut() {
|
for e in extra.iter_mut() {
|
||||||
convert_legacy(e);
|
convert_legacy(e);
|
||||||
|
|
|
@ -51,6 +51,6 @@ impl Set {
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn get(&mut self, i: usize) -> bool {
|
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
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue