]> Untitled Git - bdk/commit
Allow mutex_atomic
authorTobin Harding <me@tobin.cc>
Wed, 23 Dec 2020 04:58:57 +0000 (15:58 +1100)
committerTobin Harding <me@tobin.cc>
Wed, 24 Feb 2021 02:30:47 +0000 (13:30 +1100)
commitba8ce7233d0e747b4c7bff2997641ecd9cdceea0
treefa24f8de9ca24aa91fb8c99874f0b6d1cd9edf44
parent35184e6908b935c4c0fd2ee3be95f63af3515a00
Allow mutex_atomic

 Clippy complains about use of a mutex, suggesting we use an
 `AtomicUsize`. While the same functionality _could_ be achieved using an
 `AtomicUsize` and a CAS loop it makes the code harder to reason about
 for little gain. Lets just quieten clippy with an allow attribute and
 document why we did so.
src/blockchain/compact_filters/mod.rs