(hash: &Option<pb::Hash>)
| 199 | } |
| 200 | |
| 201 | fn full_hash(hash: &Option<pb::Hash>) -> String { |
| 202 | hash.as_ref() |
| 203 | .and_then(|h| { |
| 204 | h.value |
| 205 | .clone() |
| 206 | .try_into() |
| 207 | .ok() |
| 208 | .map(|bytes: [u8; 32]| Merkle(bytes).to_base32()) |
| 209 | }) |
| 210 | .unwrap_or_else(|| "-".to_string()) |
| 211 | } |
| 212 | |
| 213 | // --------------------------------------------------------------------------- |
| 214 | // status |
no test coverage detected