(error: &InsertBlockErrorKind)
| 791 | } |
| 792 | |
| 793 | fn base_consensus_error(error: &InsertBlockErrorKind) -> Option<&BaseConsensusError> { |
| 794 | let InsertBlockErrorKind::Consensus(ConsensusError::Other(error)) = error else { |
| 795 | return None; |
| 796 | }; |
| 797 | error.downcast_ref() |
| 798 | } |
| 799 | |
| 800 | fn base_time_metadata_error(error: &InsertBlockErrorKind) -> Option<&BaseTimeMetadataError> { |
| 801 | let InsertBlockErrorKind::Consensus(ConsensusError::Other(error)) = error else { |
nothing calls this directly
no outgoing calls
no test coverage detected