(
change_hash: Hash,
position: Position<Option<Hash>>,
)
| 443 | } |
| 444 | |
| 445 | fn external_position( |
| 446 | change_hash: Hash, |
| 447 | position: Position<Option<Hash>>, |
| 448 | ) -> Result<Position<Hash>, RepositoryError> { |
| 449 | let change = match position.change { |
| 450 | None => change_hash, |
| 451 | Some(hash) if hash == Hash::NONE => { |
| 452 | return Err(RepositoryError::InvalidOperation { |
| 453 | message: "tree operation inode cannot reference ROOT".to_string(), |
| 454 | }); |
| 455 | } |
| 456 | Some(hash) => hash, |
| 457 | }; |
| 458 | Ok(Position::new(change, position.pos)) |
| 459 | } |
| 460 | |
| 461 | fn current_path_for_position<T: GraphTxnT + TreeTxnT>( |
| 462 | txn: &T, |
no outgoing calls
no test coverage detected