]> git.bitcoin.ninja Git - rust-lightning/commit
Avoid a few useless clone() calls in onchaintx.rs
authorMatt Corallo <git@bluematt.me>
Sun, 19 Apr 2020 05:16:20 +0000 (01:16 -0400)
committerMatt Corallo <git@bluematt.me>
Thu, 23 Apr 2020 17:34:57 +0000 (13:34 -0400)
commitddda194d5324f1e9ef0da3d14fd40f1f38c10075
treeed54df428915e06bbef30ea89a7c26b1e1fe3b5e
parent71f1eba91f2bcab50c84c923ebb64f76ec2f4b51
Avoid a few useless clone() calls in onchaintx.rs

3d640da5c343111f538f006996c13c9a98e0d9e6 looped over a new HashMap
new_claims, clone()ing entries out of it right before droppng the
whole thing. This is an obvious candidate for drain(..).
lightning/src/ln/onchaintx.rs