Fixed another batch of clippy warnings

Those are mostly readability-related. Also did a cargo update.
This commit is contained in:
llogiq 2016-09-15 16:15:52 +02:00 committed by Matthew Collins
parent 49b1ae1dbc
commit 0f41b0effe
4 changed files with 3 additions and 4 deletions

View File

@ -33,7 +33,7 @@ impl Component {
convert_legacy(&mut component);
},
}
return component;
component
}
pub fn from_value(v: &serde_json::Value) -> Self {

View File

@ -14,7 +14,7 @@
use std::collections::HashMap;
use std::io;
use std::io::{Read, Write};
use std::io::Read;
use super::protocol::Serializable;
use super::protocol;

View File

@ -68,7 +68,7 @@ impl Set {
pub fn or(&mut self, other: &Set) {
for (a, b) in self.data.iter_mut().zip(&other.data) {
*a = (*a) | *b;
*a |= *b;
}
}
}

View File

@ -15,7 +15,6 @@
use std::collections::HashMap;
use std::marker::PhantomData;
use std::io;
use std::io::Write;
use std::fmt;
use protocol;
use protocol::Serializable;