From c341e21dc60ff1a7d592091e9ec7762193b70fe2 Mon Sep 17 00:00:00 2001 From: Andrew Poelstra Date: Fri, 6 Oct 2017 19:56:50 +0000 Subject: [PATCH] remove unnecessary `mut` that nightly rustc has learned to detect --- src/blockdata/blockchain.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/blockdata/blockchain.rs b/src/blockdata/blockchain.rs index cb82e939..3b5b7403 100644 --- a/src/blockdata/blockchain.rs +++ b/src/blockdata/blockchain.rs @@ -372,7 +372,7 @@ impl Blockchain { fn replace_txdata(&mut self, hash: &Uint256, txdata: Vec, has_txdata: bool) -> Result<(), util::Error> { match self.tree.lookup_mut(hash, 256) { - Some(mut existing_block) => { + Some(existing_block) => { existing_block.block.txdata.clone_from(&txdata); existing_block.has_txdata = has_txdata; Ok(())