(message: impl Into<String>)
| 406 | .then(|| Hash::from(<[u8; 32]>::try_from(src).unwrap())) |
| 407 | } |
| 408 | fn codec_error(message: impl Into<String>) -> PristineError { |
| 409 | PristineError::Serialization { |
| 410 | message: message.into(), |
| 411 | } |
| 412 | } |
| 413 | |
| 414 | #[cfg(test)] |
| 415 | mod tests { |
no outgoing calls
no test coverage detected