(
pos: &Position<Option<Hash>>,
by_end: &HashMap<ChangePosition, GraphNode<NodeId>>,
)
| 878 | ); |
| 879 | |
| 880 | fn import_direct_source( |
| 881 | pos: &Position<Option<Hash>>, |
| 882 | by_end: &HashMap<ChangePosition, GraphNode<NodeId>>, |
| 883 | ) -> Option<GraphNode<NodeId>> { |
| 884 | match pos.change { |
| 885 | Some(hash) if hash == Hash::NONE => Some(GraphNode::root()), |
| 886 | None => by_end.get(&pos.pos).copied(), |
| 887 | _ => None, |
| 888 | } |
| 889 | } |
| 890 | |
| 891 | fn import_direct_inode( |
| 892 | pos: &Position<Option<Hash>>, |
no test coverage detected