Bumping clippy & fixing warnings (#1024)

* Bumping clippy

* Fixing warnings found by clippy
This commit is contained in:
Tomasz Drwięga
2016-05-02 13:13:12 +02:00
committed by Gav Wood
parent 7c2adc4137
commit e2465b1eab
17 changed files with 27 additions and 26 deletions

View File

@@ -27,7 +27,7 @@ crossbeam = "0.2"
slab = "0.1"
sha3 = { path = "sha3" }
serde = "0.7.0"
clippy = { version = "0.0.63", optional = true}
clippy = { version = "0.0.64", optional = true}
json-tests = { path = "json-tests" }
igd = "0.4.2"
ethcore-devtools = { path = "../devtools" }

View File

@@ -425,7 +425,7 @@ impl<'a, V1, V2, T3> ToBytesWithMap for (&'a Vec<V1>, &'a Vec<V2>, &'a T3)
impl FromRawBytesVariable for Vec<u8> {
fn from_bytes_variable(bytes: &[u8]) -> Result<Vec<u8>, FromBytesError> {
Ok(bytes.clone().to_vec())
Ok(bytes.to_vec())
}
}

View File

@@ -326,7 +326,7 @@ fn uuid_from_string(s: &str) -> Result<Uuid, UtilError> {
#[derive(Clone)]
/// Stored key file struct with encrypted message (`cipher_text`)
/// Stored key file struct with encrypted message `(cipher_text)`
/// also contains password derivation function settings (PBKDF2/Scrypt)
pub struct KeyFileContent {
version: KeyFileVersion,