diff --git a/ethcore/native_contracts/src/key_server_set.rs b/ethcore/native_contracts/src/key_server_set.rs
index 60b137aae..add34b443 100644
--- a/ethcore/native_contracts/src/key_server_set.rs
+++ b/ethcore/native_contracts/src/key_server_set.rs
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU General Public License
// along with Parity. If not, see .
-#![allow(unused_mut, unused_variables, unused_imports)]
+#![allow(unused_mut, unused_variables, unused_imports, unused_parens)]
//! Secret store Key Server set contract.
diff --git a/ethcore/native_contracts/src/peer_set.rs b/ethcore/native_contracts/src/peer_set.rs
index 09d0ecbb8..1beec5ec4 100644
--- a/ethcore/native_contracts/src/peer_set.rs
+++ b/ethcore/native_contracts/src/peer_set.rs
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU General Public License
// along with Parity. If not, see .
-#![allow(unused_mut, unused_variables, unused_imports)]
+#![allow(unused_mut, unused_variables, unused_imports, unused_parens)]
//! Peer set contract.
diff --git a/ethcore/native_contracts/src/registry.rs b/ethcore/native_contracts/src/registry.rs
index 3b3a6414d..5856357d9 100644
--- a/ethcore/native_contracts/src/registry.rs
+++ b/ethcore/native_contracts/src/registry.rs
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU General Public License
// along with Parity. If not, see .
-#![allow(unused_mut, unused_variables, unused_imports)]
+#![allow(unused_mut, unused_variables, unused_imports, unused_parens)]
//! Registrar contract: maps names to addresses and data.
// TODO: testing.
diff --git a/ethcore/native_contracts/src/secretstore_acl_storage.rs b/ethcore/native_contracts/src/secretstore_acl_storage.rs
index 3ebfcfb75..98200671e 100644
--- a/ethcore/native_contracts/src/secretstore_acl_storage.rs
+++ b/ethcore/native_contracts/src/secretstore_acl_storage.rs
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU General Public License
// along with Parity. If not, see .
-#![allow(unused_mut, unused_variables, unused_imports)]
+#![allow(unused_mut, unused_variables, unused_imports, unused_parens)]
//! Secret store ACL storage contract.
// TODO: testing.
diff --git a/ethcore/native_contracts/src/secretstore_service.rs b/ethcore/native_contracts/src/secretstore_service.rs
index 508cfa13b..1161fc731 100644
--- a/ethcore/native_contracts/src/secretstore_service.rs
+++ b/ethcore/native_contracts/src/secretstore_service.rs
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU General Public License
// along with Parity. If not, see .
-#![allow(unused_mut, unused_variables, unused_imports)]
+#![allow(unused_mut, unused_variables, unused_imports, unused_parens)]
//! Secret store service contract.
diff --git a/ethcore/native_contracts/src/service_transaction.rs b/ethcore/native_contracts/src/service_transaction.rs
index ee3b17552..ccf5c87f5 100644
--- a/ethcore/native_contracts/src/service_transaction.rs
+++ b/ethcore/native_contracts/src/service_transaction.rs
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU General Public License
// along with Parity. If not, see .
-#![allow(unused_mut, unused_variables, unused_imports)]
+#![allow(unused_mut, unused_variables, unused_imports, unused_parens)]
//! Service transaction contract.
// TODO: testing.
diff --git a/ethcore/native_contracts/src/test_contracts/validator_set.rs b/ethcore/native_contracts/src/test_contracts/validator_set.rs
index 8a63c90dd..5f5379d92 100644
--- a/ethcore/native_contracts/src/test_contracts/validator_set.rs
+++ b/ethcore/native_contracts/src/test_contracts/validator_set.rs
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU General Public License
// along with Parity. If not, see .
-#![allow(unused_mut, unused_variables, unused_imports)]
+#![allow(unused_mut, unused_variables, unused_imports, unused_parens)]
//! Test validator set contract.
diff --git a/ethcore/native_contracts/src/tx_acl.rs b/ethcore/native_contracts/src/tx_acl.rs
index 1ab4c8e5d..469fe174a 100644
--- a/ethcore/native_contracts/src/tx_acl.rs
+++ b/ethcore/native_contracts/src/tx_acl.rs
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU General Public License
// along with Parity. If not, see .
-#![allow(unused_mut, unused_variables, unused_imports)]
+#![allow(unused_mut, unused_variables, unused_imports, unused_parens)]
//! Transact permissions contract.
diff --git a/ethcore/native_contracts/src/validator_set.rs b/ethcore/native_contracts/src/validator_set.rs
index 0a69913e0..1597a7bf2 100644
--- a/ethcore/native_contracts/src/validator_set.rs
+++ b/ethcore/native_contracts/src/validator_set.rs
@@ -14,7 +14,7 @@
// You should have received a copy of the GNU General Public License
// along with Parity. If not, see .
-#![allow(unused_mut, unused_variables, unused_imports)]
+#![allow(unused_mut, unused_variables, unused_imports, unused_parens)]
//! Validator set contract.
// TODO: testing.
diff --git a/ethcrypto/src/lib.rs b/ethcrypto/src/lib.rs
index 6ba8b5400..8f00004ab 100644
--- a/ethcrypto/src/lib.rs
+++ b/ethcrypto/src/lib.rs
@@ -225,7 +225,7 @@ pub mod ecies {
hasher.result(&mut mkey);
let ekey = &key[0..16];
- let mut msg = vec![0u8; (1 + 64 + 16 + plain.len() + 32)];
+ let mut msg = vec![0u8; 1 + 64 + 16 + plain.len() + 32];
msg[0] = 0x04u8;
{
let msgd = &mut msg[1..];
@@ -262,7 +262,7 @@ pub mod ecies {
hasher.result(&mut mkey);
let ekey = &key[0..16];
- let mut msgd = vec![0u8; (64 + plain.len())];
+ let mut msgd = vec![0u8; 64 + plain.len()];
{
r.public().copy_to(&mut msgd[0..64]);
let iv = H128::from_slice(&z.keccak256()[0..16]);
diff --git a/rpc/src/v1/impls/signing_unsafe.rs b/rpc/src/v1/impls/signing_unsafe.rs
index e2bf27d39..ddac36a61 100644
--- a/rpc/src/v1/impls/signing_unsafe.rs
+++ b/rpc/src/v1/impls/signing_unsafe.rs
@@ -129,7 +129,7 @@ impl ParitySigning for SigningUnsafeClient {
fn post_transaction(&self, _: Metadata, _: RpcTransactionRequest) -> BoxFuture> {
// We don't support this in non-signer mode.
- Box::new(future::err((errors::signer_disabled())))
+ Box::new(future::err(errors::signer_disabled()))
}
fn check_request(&self, _: RpcU256) -> Result