(hash_fn: &F, node_id: NodeId)
| 107 | } |
| 108 | |
| 109 | fn lookup_hash<F>(hash_fn: &F, node_id: NodeId) -> OutputResult<Option<Hash>> |
| 110 | where |
| 111 | F: Fn(NodeId) -> Result<Option<Hash>, PristineError>, |
| 112 | { |
| 113 | if node_id.is_root() { |
| 114 | return Ok(None); |
| 115 | } |
| 116 | |
| 117 | hash_fn(node_id)? |
| 118 | .map(Some) |
| 119 | .ok_or_else(|| PristineError::ChangeNotFound { id: node_id.get() }.into()) |
| 120 | } |
| 121 | |
| 122 | fn output_vertex_content<C, F, V>( |
| 123 | changes: &C, |
no test coverage detected