remove unnecessary `mut` that nightly rustc has learned to detect

This commit is contained in:
Andrew Poelstra 2017-10-06 19:56:50 +00:00
parent 46439710d9
commit c341e21dc6
No known key found for this signature in database
GPG Key ID: 4FACF08041655A68
1 changed files with 1 additions and 1 deletions

View File

@ -372,7 +372,7 @@ impl Blockchain {
fn replace_txdata(&mut self, hash: &Uint256, txdata: Vec<Transaction>, 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(())