From 61506a80647e200e7d42bc5ca8e64a15b126e3f8 Mon Sep 17 00:00:00 2001 From: Gary Yu Date: Fri, 27 Jul 2018 22:16:14 +0800 Subject: [PATCH] clean some build warnings (#1288) * clean some build warnings * undo the warning suppress for aggsig --- chain/src/txhashset.rs | 10 +++++----- wallet/src/client.rs | 2 +- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/chain/src/txhashset.rs b/chain/src/txhashset.rs index d38d8316..e1bf38db 100644 --- a/chain/src/txhashset.rs +++ b/chain/src/txhashset.rs @@ -1023,11 +1023,11 @@ impl<'a> Extension<'a> { Ok(()) } - // Special handling to make sure the whole kernel set matches each of its - // roots in each block header, without truncation. We go back header by - // header, rewind and check each root. This fixes a potential weakness in - // fast sync where a reorg past the horizon could allow a whole rewrite of - // the kernel set. + /// Special handling to make sure the whole kernel set matches each of its + /// roots in each block header, without truncation. We go back header by + /// header, rewind and check each root. This fixes a potential weakness in + /// fast sync where a reorg past the horizon could allow a whole rewrite of + /// the kernel set. pub fn validate_kernel_history(&mut self, header: &BlockHeader) -> Result<(), Error> { assert!(self.rollback, "verified kernel history on writeable txhashset extension"); diff --git a/wallet/src/client.rs b/wallet/src/client.rs index cc6a098e..8be5433f 100644 --- a/wallet/src/client.rs +++ b/wallet/src/client.rs @@ -173,7 +173,7 @@ impl WalletClient for HTTPWalletClient { Ok(outputs) => for out in outputs { api_outputs.insert(out.commit.commit(), util::to_hex(out.commit.to_vec())); }, - Err(e) => { + Err(_) => { // if we got anything other than 200 back from server, don't attempt to refresh // the wallet data after return Err(libwallet::ErrorKind::ClientCallback("Error from server"))?;