Skip to content

Commit d8cf1e6

Browse files
committed
Add suggested clippy fixes
1 parent 23c88d3 commit d8cf1e6

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

stacks-signer/src/v0/signer.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,12 @@ impl<const N: usize> std::fmt::Debug for RecentlyProcessedBlocks<N> {
140140
}
141141
}
142142

143+
impl<const N: usize> Default for RecentlyProcessedBlocks<N> {
144+
fn default() -> Self {
145+
Self::new()
146+
}
147+
}
148+
143149
impl<const N: usize> RecentlyProcessedBlocks<N> {
144150
/// Construct a new recently processed blocks cache
145151
pub fn new() -> Self {
@@ -148,6 +154,7 @@ impl<const N: usize> RecentlyProcessedBlocks<N> {
148154
write_head: 0,
149155
}
150156
}
157+
151158
/// Is `block` known to have been processed by our stacks-node?
152159
pub fn is_processed(&self, block: &StacksBlockId) -> bool {
153160
self.blocks.contains(block)

0 commit comments

Comments
 (0)