Skip to content

Commit 8aa650d

Browse files
committed
Replace Arc.clone()s with Arc::clone() in BP tests
`arc.clone()` leaves the code somewhat ambiguous to whether we're doing an expensive deep-clone operation or if we're doing a (relatively) cheap pointer-copy-and-atomic-increment operation. More importantly, it leaves entirely unclear what the semantics of the object we just created are - does updating it update the original or leave it be? Thus, here, we replace `arc.clone()` calls with `Arc::clone()` in `lightning-background-processor` tests.
1 parent 810da99 commit 8aa650d

File tree

1 file changed

+130
-130
lines changed
  • lightning-background-processor/src

1 file changed

+130
-130
lines changed

0 commit comments

Comments
 (0)