Drop use of RefCell in DebugIter
authorWilmer Paulino <wilmer@wilmerpaulino.com>
Mon, 17 Jul 2023 17:45:39 +0000 (10:45 -0700)
committerWilmer Paulino <wilmer@wilmerpaulino.com>
Mon, 17 Jul 2023 17:57:34 +0000 (10:57 -0700)
commit9b614f4ff226da918d9f730a7531f40d2e333aab
tree5f26e95a8ba8c4ea39022e48f7ef53774fd7022e
parentba8af2280de6ee906f4d3cc5185884d9faf31e66
Drop use of RefCell in DebugIter

The `RefCell` was necessary in a previous iteration of the code in which
the iterator was not `Clone` so we needed interior mutability in order
to consume the iterator. Now that it is `Clone`, we can drop it, as
we're no longer mutating the original iterator.
lightning/src/util/logger.rs
lightning/src/util/macro_logger.rs