Skip to content

Commit

Permalink
split links_to_paths
Browse files Browse the repository at this point in the history
  • Loading branch information
ddd-mtl committed Jul 8, 2024
1 parent 2613705 commit af8643c
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/path_utils/typed_path_ext.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,12 @@ pub fn tp_children(tp: &TypedPath) -> ExternResult<Vec<holochain_zome_types::lin
pub fn tp_children_paths(tp: &TypedPath) -> ExternResult<Vec<TypedPath>> {
let children = tp_children(tp)?;
//debug!("tp_children_paths() children = {:?}", children);
return links_to_paths(tp, children);
}


///
pub fn links_to_paths(tp: &TypedPath, children: Vec<Link>) -> ExternResult<Vec<TypedPath>> {
let components: ExternResult<Vec<Option<Component>>> = children
.into_iter()
.map(|link| {
Expand Down

0 comments on commit af8643c

Please sign in to comment.