Commit ae51f25
committed
Replace
`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/src/lib.rs`Arc.clone()s with Arc::clone() in background-processor1 parent d89db75 commit ae51f25
1 file changed
+1
-1
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1021 | 1021 | | |
1022 | 1022 | | |
1023 | 1023 | | |
1024 | | - | |
| 1024 | + | |
1025 | 1025 | | |
1026 | 1026 | | |
1027 | 1027 | | |
| |||
0 commit comments