(
pos: &Position<Option<Hash>>,
inode_by_pos: &HashMap<ChangePosition, Inode>,
)
| 889 | } |
| 890 | |
| 891 | fn import_direct_inode( |
| 892 | pos: &Position<Option<Hash>>, |
| 893 | inode_by_pos: &HashMap<ChangePosition, Inode>, |
| 894 | ) -> Option<Inode> { |
| 895 | match pos.change { |
| 896 | None => inode_by_pos.get(&pos.pos).copied(), |
| 897 | _ => None, |
| 898 | } |
| 899 | } |
| 900 | |
| 901 | fn import_direct_can_apply(change: &Change) -> bool { |
| 902 | if change.hunks().is_empty() { |
no test coverage detected