test: ensure block reader traits are object safe (#9440)

This commit is contained in:
Matthias Seitz
2024-07-11 16:40:42 +02:00
committed by GitHub
parent 6e70bab36e
commit 8a0414fe28

View File

@ -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>) {}