Fixed another batch of clippy warnings
Those are mostly readability-related. Also did a cargo update.
This commit is contained in:
parent
49b1ae1dbc
commit
0f41b0effe
|
@ -33,7 +33,7 @@ impl Component {
|
||||||
convert_legacy(&mut component);
|
convert_legacy(&mut component);
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
return component;
|
component
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn from_value(v: &serde_json::Value) -> Self {
|
pub fn from_value(v: &serde_json::Value) -> Self {
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
use std::io;
|
use std::io;
|
||||||
use std::io::{Read, Write};
|
use std::io::Read;
|
||||||
|
|
||||||
use super::protocol::Serializable;
|
use super::protocol::Serializable;
|
||||||
use super::protocol;
|
use super::protocol;
|
||||||
|
|
|
@ -68,7 +68,7 @@ impl Set {
|
||||||
|
|
||||||
pub fn or(&mut self, other: &Set) {
|
pub fn or(&mut self, other: &Set) {
|
||||||
for (a, b) in self.data.iter_mut().zip(&other.data) {
|
for (a, b) in self.data.iter_mut().zip(&other.data) {
|
||||||
*a = (*a) | *b;
|
*a |= *b;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -15,7 +15,6 @@
|
||||||
use std::collections::HashMap;
|
use std::collections::HashMap;
|
||||||
use std::marker::PhantomData;
|
use std::marker::PhantomData;
|
||||||
use std::io;
|
use std::io;
|
||||||
use std::io::Write;
|
|
||||||
use std::fmt;
|
use std::fmt;
|
||||||
use protocol;
|
use protocol;
|
||||||
use protocol::Serializable;
|
use protocol::Serializable;
|
||||||
|
|
Loading…
Reference in New Issue