mirror of
https://github.com/hl-archive-node/nanoreth.git
synced 2025-12-06 10:59:55 +00:00
test: ensure block reader traits are object safe (#9440)
This commit is contained in:
@ -129,3 +129,6 @@ pub trait BlockIdReader: BlockNumReader + Send + Sync {
|
||||
self.finalized_block_num_hash().map(|res_opt| res_opt.map(|num_hash| num_hash.hash))
|
||||
}
|
||||
}
|
||||
|
||||
#[cfg(test)]
|
||||
fn _object_safe(_: Box<dyn BlockIdReader>) {}
|
||||
|
||||
Reference in New Issue
Block a user