diff --git a/eden/mononoke/segmented_changelog/src/dag.rs b/eden/mononoke/segmented_changelog/src/dag.rs index 65fa973329..de21c1c331 100644 --- a/eden/mononoke/segmented_changelog/src/dag.rs +++ b/eden/mononoke/segmented_changelog/src/dag.rs @@ -199,7 +199,7 @@ impl Dag { .insert_many(ctx, self.repo_id, mem_idmap.iter().collect::>()) .await?; - let get_vertex_parents = |vertex: Vertex| -> Result> { + let get_vertex_parents = |vertex: Vertex| -> dag::Result> { let cs_id = match mem_idmap.find_changeset_id(vertex) { None => start_state.assignments.get_changeset_id(vertex)?, Some(v) => v, diff --git a/eden/scm/edenscmnative/bindings/modules/pydag/src/commits.rs b/eden/scm/edenscmnative/bindings/modules/pydag/src/commits.rs index 37a9c87263..c9e64b245b 100644 --- a/eden/scm/edenscmnative/bindings/modules/pydag/src/commits.rs +++ b/eden/scm/edenscmnative/bindings/modules/pydag/src/commits.rs @@ -147,126 +147,126 @@ impl commits { // Delegate trait implementations to `inner`. impl DagAlgorithm for commits { - fn sort(&self, set: &Set) -> Result { + fn sort(&self, set: &Set) -> dag::Result { // commits are used by other Python objects: the other Python objects hold the GIL. let py = unsafe { Python::assume_gil_acquired() }; self.inner(py).borrow().sort(set) } - fn parent_names(&self, name: Vertex) -> Result> { + fn parent_names(&self, name: Vertex) -> dag::Result> { let py = unsafe { Python::assume_gil_acquired() }; self.inner(py).borrow().parent_names(name) } - fn all(&self) -> Result { + fn all(&self) -> dag::Result { let py = unsafe { Python::assume_gil_acquired() }; self.inner(py).borrow().all() } - fn ancestors(&self, set: Set) -> Result { + fn ancestors(&self, set: Set) -> dag::Result { let py = unsafe { Python::assume_gil_acquired() }; self.inner(py).borrow().ancestors(set) } - fn parents(&self, set: Set) -> Result { + fn parents(&self, set: Set) -> dag::Result { let py = unsafe { Python::assume_gil_acquired() }; self.inner(py).borrow().parents(set) } - fn first_ancestor_nth(&self, name: Vertex, n: u64) -> Result { + fn first_ancestor_nth(&self, name: Vertex, n: u64) -> dag::Result { let py = unsafe { Python::assume_gil_acquired() }; self.inner(py).borrow().first_ancestor_nth(name, n) } - fn heads(&self, set: Set) -> Result { + fn heads(&self, set: Set) -> dag::Result { let py = unsafe { Python::assume_gil_acquired() }; self.inner(py).borrow().heads(set) } - fn children(&self, set: Set) -> Result { + fn children(&self, set: Set) -> dag::Result { let py = unsafe { Python::assume_gil_acquired() }; self.inner(py).borrow().children(set) } - fn roots(&self, set: Set) -> Result { + fn roots(&self, set: Set) -> dag::Result { let py = unsafe { Python::assume_gil_acquired() }; self.inner(py).borrow().roots(set) } - fn gca_one(&self, set: Set) -> Result> { + fn gca_one(&self, set: Set) -> dag::Result> { let py = unsafe { Python::assume_gil_acquired() }; self.inner(py).borrow().gca_one(set) } - fn gca_all(&self, set: Set) -> Result { + fn gca_all(&self, set: Set) -> dag::Result { let py = unsafe { Python::assume_gil_acquired() }; self.inner(py).borrow().gca_all(set) } - fn common_ancestors(&self, set: Set) -> Result { + fn common_ancestors(&self, set: Set) -> dag::Result { let py = unsafe { Python::assume_gil_acquired() }; self.inner(py).borrow().common_ancestors(set) } - fn is_ancestor(&self, ancestor: Vertex, descendant: Vertex) -> Result { + fn is_ancestor(&self, ancestor: Vertex, descendant: Vertex) -> dag::Result { let py = unsafe { Python::assume_gil_acquired() }; self.inner(py).borrow().is_ancestor(ancestor, descendant) } - fn heads_ancestors(&self, set: Set) -> Result { + fn heads_ancestors(&self, set: Set) -> dag::Result { let py = unsafe { Python::assume_gil_acquired() }; self.inner(py).borrow().heads_ancestors(set) } - fn range(&self, roots: Set, heads: Set) -> Result { + fn range(&self, roots: Set, heads: Set) -> dag::Result { let py = unsafe { Python::assume_gil_acquired() }; self.inner(py).borrow().range(roots, heads) } - fn only(&self, reachable: Set, unreachable: Set) -> Result { + fn only(&self, reachable: Set, unreachable: Set) -> dag::Result { let py = unsafe { Python::assume_gil_acquired() }; self.inner(py).borrow().only(reachable, unreachable) } - fn only_both(&self, reachable: Set, unreachable: Set) -> Result<(Set, Set)> { + fn only_both(&self, reachable: Set, unreachable: Set) -> dag::Result<(Set, Set)> { let py = unsafe { Python::assume_gil_acquired() }; self.inner(py).borrow().only_both(reachable, unreachable) } - fn descendants(&self, set: Set) -> Result { + fn descendants(&self, set: Set) -> dag::Result { let py = unsafe { Python::assume_gil_acquired() }; self.inner(py).borrow().descendants(set) } - fn reachable_roots(&self, roots: Set, heads: Set) -> Result { + fn reachable_roots(&self, roots: Set, heads: Set) -> dag::Result { let py = unsafe { Python::assume_gil_acquired() }; self.inner(py).borrow().reachable_roots(roots, heads) } } impl IdConvert for commits { - fn vertex_id(&self, name: Vertex) -> Result { + fn vertex_id(&self, name: Vertex) -> dag::Result { let py = unsafe { Python::assume_gil_acquired() }; self.inner(py).borrow().vertex_id(name) } - fn vertex_id_with_max_group(&self, name: &Vertex, max_group: Group) -> Result> { + fn vertex_id_with_max_group(&self, name: &Vertex, max_group: Group) -> dag::Result> { let py = unsafe { Python::assume_gil_acquired() }; self.inner(py) .borrow() .vertex_id_with_max_group(name, max_group) } - fn vertex_name(&self, id: Id) -> Result { + fn vertex_name(&self, id: Id) -> dag::Result { let py = unsafe { Python::assume_gil_acquired() }; self.inner(py).borrow().vertex_name(id) } - fn contains_vertex_name(&self, name: &Vertex) -> Result { + fn contains_vertex_name(&self, name: &Vertex) -> dag::Result { let py = unsafe { Python::assume_gil_acquired() }; self.inner(py).borrow().contains_vertex_name(name) } } impl PrefixLookup for commits { - fn vertexes_by_hex_prefix(&self, hex_prefix: &[u8], limit: usize) -> Result> { + fn vertexes_by_hex_prefix(&self, hex_prefix: &[u8], limit: usize) -> dag::Result> { let py = unsafe { Python::assume_gil_acquired() }; self.inner(py) .borrow() diff --git a/eden/scm/edenscmnative/bindings/modules/pydag/src/nameset.rs b/eden/scm/edenscmnative/bindings/modules/pydag/src/nameset.rs index bf912215bb..33b51eeb67 100644 --- a/eden/scm/edenscmnative/bindings/modules/pydag/src/nameset.rs +++ b/eden/scm/edenscmnative/bindings/modules/pydag/src/nameset.rs @@ -185,7 +185,7 @@ impl PyNameIter { } impl Iterator for PyNameIter { - type Item = Result; + type Item = dag::Result; fn next(&mut self) -> Option { if self.errored { diff --git a/eden/scm/lib/hgcommits/src/hgsha1commits.rs b/eden/scm/lib/hgcommits/src/hgsha1commits.rs index ef9f76e303..7c7397dc45 100644 --- a/eden/scm/lib/hgcommits/src/hgsha1commits.rs +++ b/eden/scm/lib/hgcommits/src/hgsha1commits.rs @@ -97,7 +97,7 @@ impl AppendCommits for HgCommits { .cloned() .map(|c| (c.vertex.clone(), c)) .collect(); - let parent_func = |v: Vertex| -> Result> { + let parent_func = |v: Vertex| -> dag::Result> { match commits.get(&v) { Some(commit) => Ok(commit.parents.clone()), None => bail!("unknown commit ({:?}) at add_commits", &v), @@ -148,94 +148,94 @@ impl StripCommits for HgCommits { } impl IdConvert for HgCommits { - fn vertex_id(&self, name: Vertex) -> Result { + fn vertex_id(&self, name: Vertex) -> dag::Result { self.dag.vertex_id(name) } - fn vertex_id_with_max_group(&self, name: &Vertex, max_group: Group) -> Result> { + fn vertex_id_with_max_group(&self, name: &Vertex, max_group: Group) -> dag::Result> { self.dag.vertex_id_with_max_group(name, max_group) } - fn vertex_name(&self, id: Id) -> Result { + fn vertex_name(&self, id: Id) -> dag::Result { self.dag.vertex_name(id) } - fn contains_vertex_name(&self, name: &Vertex) -> Result { + fn contains_vertex_name(&self, name: &Vertex) -> dag::Result { self.dag.contains_vertex_name(name) } } impl PrefixLookup for HgCommits { - fn vertexes_by_hex_prefix(&self, hex_prefix: &[u8], limit: usize) -> Result> { + fn vertexes_by_hex_prefix(&self, hex_prefix: &[u8], limit: usize) -> dag::Result> { self.dag.vertexes_by_hex_prefix(hex_prefix, limit) } } impl DagAlgorithm for HgCommits { - fn sort(&self, set: &Set) -> Result { + fn sort(&self, set: &Set) -> dag::Result { self.dag.sort(set) } - fn parent_names(&self, name: Vertex) -> Result> { + fn parent_names(&self, name: Vertex) -> dag::Result> { self.dag.parent_names(name) } - fn all(&self) -> Result { + fn all(&self) -> dag::Result { self.dag.all() } - fn ancestors(&self, set: Set) -> Result { + fn ancestors(&self, set: Set) -> dag::Result { self.dag.ancestors(set) } - fn parents(&self, set: Set) -> Result { + fn parents(&self, set: Set) -> dag::Result { self.dag.parents(set) } - fn first_ancestor_nth(&self, name: Vertex, n: u64) -> Result { + fn first_ancestor_nth(&self, name: Vertex, n: u64) -> dag::Result { self.dag.first_ancestor_nth(name, n) } - fn heads(&self, set: Set) -> Result { + fn heads(&self, set: Set) -> dag::Result { self.dag.heads(set) } - fn children(&self, set: Set) -> Result { + fn children(&self, set: Set) -> dag::Result { self.dag.children(set) } - fn roots(&self, set: Set) -> Result { + fn roots(&self, set: Set) -> dag::Result { self.dag.roots(set) } - fn gca_one(&self, set: Set) -> Result> { + fn gca_one(&self, set: Set) -> dag::Result> { self.dag.gca_one(set) } - fn gca_all(&self, set: Set) -> Result { + fn gca_all(&self, set: Set) -> dag::Result { self.dag.gca_all(set) } - fn common_ancestors(&self, set: Set) -> Result { + fn common_ancestors(&self, set: Set) -> dag::Result { self.dag.common_ancestors(set) } - fn is_ancestor(&self, ancestor: Vertex, descendant: Vertex) -> Result { + fn is_ancestor(&self, ancestor: Vertex, descendant: Vertex) -> dag::Result { self.dag.is_ancestor(ancestor, descendant) } - fn heads_ancestors(&self, set: Set) -> Result { + fn heads_ancestors(&self, set: Set) -> dag::Result { self.dag.heads_ancestors(set) } - fn range(&self, roots: Set, heads: Set) -> Result { + fn range(&self, roots: Set, heads: Set) -> dag::Result { self.dag.range(roots, heads) } - fn only(&self, reachable: Set, unreachable: Set) -> Result { + fn only(&self, reachable: Set, unreachable: Set) -> dag::Result { self.dag.only(reachable, unreachable) } - fn only_both(&self, reachable: Set, unreachable: Set) -> Result<(Set, Set)> { + fn only_both(&self, reachable: Set, unreachable: Set) -> dag::Result<(Set, Set)> { self.dag.only_both(reachable, unreachable) } - fn descendants(&self, set: Set) -> Result { + fn descendants(&self, set: Set) -> dag::Result { self.dag.descendants(set) } - fn reachable_roots(&self, roots: Set, heads: Set) -> Result { + fn reachable_roots(&self, roots: Set, heads: Set) -> dag::Result { self.dag.reachable_roots(roots, heads) } } impl ToIdSet for HgCommits { - fn to_id_set(&self, set: &Set) -> Result { + fn to_id_set(&self, set: &Set) -> dag::Result { self.dag.to_id_set(set) } } impl ToSet for HgCommits { - fn to_set(&self, set: &IdSet) -> Result { + fn to_set(&self, set: &IdSet) -> dag::Result { self.dag.to_set(set) } } diff --git a/eden/scm/lib/hgcommits/src/memhgcommits.rs b/eden/scm/lib/hgcommits/src/memhgcommits.rs index 761e8dd00a..f8ccbd6c26 100644 --- a/eden/scm/lib/hgcommits/src/memhgcommits.rs +++ b/eden/scm/lib/hgcommits/src/memhgcommits.rs @@ -58,7 +58,7 @@ impl AppendCommits for MemHgCommits { .cloned() .map(|c| (c.vertex.clone(), c)) .collect(); - let parent_func = |v: Vertex| -> Result> { + let parent_func = |v: Vertex| -> dag::Result> { match commits.get(&v) { Some(commit) => Ok(commit.parents.clone()), None => bail!("unknown commit ({:?}) at add_commits", &v), @@ -99,94 +99,94 @@ impl StripCommits for MemHgCommits { } impl IdConvert for MemHgCommits { - fn vertex_id(&self, name: Vertex) -> Result { + fn vertex_id(&self, name: Vertex) -> dag::Result { self.dag.vertex_id(name) } - fn vertex_id_with_max_group(&self, name: &Vertex, max_group: Group) -> Result> { + fn vertex_id_with_max_group(&self, name: &Vertex, max_group: Group) -> dag::Result> { self.dag.vertex_id_with_max_group(name, max_group) } - fn vertex_name(&self, id: Id) -> Result { + fn vertex_name(&self, id: Id) -> dag::Result { self.dag.vertex_name(id) } - fn contains_vertex_name(&self, name: &Vertex) -> Result { + fn contains_vertex_name(&self, name: &Vertex) -> dag::Result { self.dag.contains_vertex_name(name) } } impl PrefixLookup for MemHgCommits { - fn vertexes_by_hex_prefix(&self, hex_prefix: &[u8], limit: usize) -> Result> { + fn vertexes_by_hex_prefix(&self, hex_prefix: &[u8], limit: usize) -> dag::Result> { self.dag.vertexes_by_hex_prefix(hex_prefix, limit) } } impl DagAlgorithm for MemHgCommits { - fn sort(&self, set: &Set) -> Result { + fn sort(&self, set: &Set) -> dag::Result { self.dag.sort(set) } - fn parent_names(&self, name: Vertex) -> Result> { + fn parent_names(&self, name: Vertex) -> dag::Result> { self.dag.parent_names(name) } - fn all(&self) -> Result { + fn all(&self) -> dag::Result { self.dag.all() } - fn ancestors(&self, set: Set) -> Result { + fn ancestors(&self, set: Set) -> dag::Result { self.dag.ancestors(set) } - fn parents(&self, set: Set) -> Result { + fn parents(&self, set: Set) -> dag::Result { self.dag.parents(set) } - fn first_ancestor_nth(&self, name: Vertex, n: u64) -> Result { + fn first_ancestor_nth(&self, name: Vertex, n: u64) -> dag::Result { self.dag.first_ancestor_nth(name, n) } - fn heads(&self, set: Set) -> Result { + fn heads(&self, set: Set) -> dag::Result { self.dag.heads(set) } - fn children(&self, set: Set) -> Result { + fn children(&self, set: Set) -> dag::Result { self.dag.children(set) } - fn roots(&self, set: Set) -> Result { + fn roots(&self, set: Set) -> dag::Result { self.dag.roots(set) } - fn gca_one(&self, set: Set) -> Result> { + fn gca_one(&self, set: Set) -> dag::Result> { self.dag.gca_one(set) } - fn gca_all(&self, set: Set) -> Result { + fn gca_all(&self, set: Set) -> dag::Result { self.dag.gca_all(set) } - fn common_ancestors(&self, set: Set) -> Result { + fn common_ancestors(&self, set: Set) -> dag::Result { self.dag.common_ancestors(set) } - fn is_ancestor(&self, ancestor: Vertex, descendant: Vertex) -> Result { + fn is_ancestor(&self, ancestor: Vertex, descendant: Vertex) -> dag::Result { self.dag.is_ancestor(ancestor, descendant) } - fn heads_ancestors(&self, set: Set) -> Result { + fn heads_ancestors(&self, set: Set) -> dag::Result { self.dag.heads_ancestors(set) } - fn range(&self, roots: Set, heads: Set) -> Result { + fn range(&self, roots: Set, heads: Set) -> dag::Result { self.dag.range(roots, heads) } - fn only(&self, reachable: Set, unreachable: Set) -> Result { + fn only(&self, reachable: Set, unreachable: Set) -> dag::Result { self.dag.only(reachable, unreachable) } - fn only_both(&self, reachable: Set, unreachable: Set) -> Result<(Set, Set)> { + fn only_both(&self, reachable: Set, unreachable: Set) -> dag::Result<(Set, Set)> { self.dag.only_both(reachable, unreachable) } - fn descendants(&self, set: Set) -> Result { + fn descendants(&self, set: Set) -> dag::Result { self.dag.descendants(set) } - fn reachable_roots(&self, roots: Set, heads: Set) -> Result { + fn reachable_roots(&self, roots: Set, heads: Set) -> dag::Result { self.dag.reachable_roots(roots, heads) } } impl ToIdSet for MemHgCommits { - fn to_id_set(&self, set: &Set) -> Result { + fn to_id_set(&self, set: &Set) -> dag::Result { self.dag.to_id_set(set) } } impl ToSet for MemHgCommits { - fn to_set(&self, set: &IdSet) -> Result { + fn to_set(&self, set: &IdSet) -> dag::Result { self.dag.to_set(set) } } diff --git a/eden/scm/lib/hgcommits/src/revlog.rs b/eden/scm/lib/hgcommits/src/revlog.rs index 99ad379514..0970ba78ee 100644 --- a/eden/scm/lib/hgcommits/src/revlog.rs +++ b/eden/scm/lib/hgcommits/src/revlog.rs @@ -88,94 +88,94 @@ impl StripCommits for RevlogCommits { } impl IdConvert for RevlogCommits { - fn vertex_id(&self, name: Vertex) -> Result { + fn vertex_id(&self, name: Vertex) -> dag::Result { self.revlog.vertex_id(name) } - fn vertex_id_with_max_group(&self, name: &Vertex, max_group: Group) -> Result> { + fn vertex_id_with_max_group(&self, name: &Vertex, max_group: Group) -> dag::Result> { self.revlog.vertex_id_with_max_group(name, max_group) } - fn vertex_name(&self, id: Id) -> Result { + fn vertex_name(&self, id: Id) -> dag::Result { self.revlog.vertex_name(id) } - fn contains_vertex_name(&self, name: &Vertex) -> Result { + fn contains_vertex_name(&self, name: &Vertex) -> dag::Result { self.revlog.contains_vertex_name(name) } } impl PrefixLookup for RevlogCommits { - fn vertexes_by_hex_prefix(&self, hex_prefix: &[u8], limit: usize) -> Result> { + fn vertexes_by_hex_prefix(&self, hex_prefix: &[u8], limit: usize) -> dag::Result> { self.revlog.vertexes_by_hex_prefix(hex_prefix, limit) } } impl DagAlgorithm for RevlogCommits { - fn sort(&self, set: &Set) -> Result { + fn sort(&self, set: &Set) -> dag::Result { self.revlog.sort(set) } - fn parent_names(&self, name: Vertex) -> Result> { + fn parent_names(&self, name: Vertex) -> dag::Result> { self.revlog.parent_names(name) } - fn all(&self) -> Result { + fn all(&self) -> dag::Result { self.revlog.all() } - fn ancestors(&self, set: Set) -> Result { + fn ancestors(&self, set: Set) -> dag::Result { self.revlog.ancestors(set) } - fn parents(&self, set: Set) -> Result { + fn parents(&self, set: Set) -> dag::Result { self.revlog.parents(set) } - fn first_ancestor_nth(&self, name: Vertex, n: u64) -> Result { + fn first_ancestor_nth(&self, name: Vertex, n: u64) -> dag::Result { self.revlog.first_ancestor_nth(name, n) } - fn heads(&self, set: Set) -> Result { + fn heads(&self, set: Set) -> dag::Result { self.revlog.heads(set) } - fn children(&self, set: Set) -> Result { + fn children(&self, set: Set) -> dag::Result { self.revlog.children(set) } - fn roots(&self, set: Set) -> Result { + fn roots(&self, set: Set) -> dag::Result { self.revlog.roots(set) } - fn gca_one(&self, set: Set) -> Result> { + fn gca_one(&self, set: Set) -> dag::Result> { self.revlog.gca_one(set) } - fn gca_all(&self, set: Set) -> Result { + fn gca_all(&self, set: Set) -> dag::Result { self.revlog.gca_all(set) } - fn common_ancestors(&self, set: Set) -> Result { + fn common_ancestors(&self, set: Set) -> dag::Result { self.revlog.common_ancestors(set) } - fn is_ancestor(&self, ancestor: Vertex, descendant: Vertex) -> Result { + fn is_ancestor(&self, ancestor: Vertex, descendant: Vertex) -> dag::Result { self.revlog.is_ancestor(ancestor, descendant) } - fn heads_ancestors(&self, set: Set) -> Result { + fn heads_ancestors(&self, set: Set) -> dag::Result { self.revlog.heads_ancestors(set) } - fn range(&self, roots: Set, heads: Set) -> Result { + fn range(&self, roots: Set, heads: Set) -> dag::Result { self.revlog.range(roots, heads) } - fn only(&self, reachable: Set, unreachable: Set) -> Result { + fn only(&self, reachable: Set, unreachable: Set) -> dag::Result { self.revlog.only(reachable, unreachable) } - fn only_both(&self, reachable: Set, unreachable: Set) -> Result<(Set, Set)> { + fn only_both(&self, reachable: Set, unreachable: Set) -> dag::Result<(Set, Set)> { self.revlog.only_both(reachable, unreachable) } - fn descendants(&self, set: Set) -> Result { + fn descendants(&self, set: Set) -> dag::Result { self.revlog.descendants(set) } - fn reachable_roots(&self, roots: Set, heads: Set) -> Result { + fn reachable_roots(&self, roots: Set, heads: Set) -> dag::Result { self.revlog.reachable_roots(roots, heads) } } impl ToIdSet for RevlogCommits { - fn to_id_set(&self, set: &Set) -> Result { + fn to_id_set(&self, set: &Set) -> dag::Result { self.revlog.to_id_set(set) } } impl ToSet for RevlogCommits { - fn to_set(&self, set: &IdSet) -> Result { + fn to_set(&self, set: &IdSet) -> dag::Result { self.revlog.to_set(set) } } diff --git a/eden/scm/lib/hgcommits/src/strip.rs b/eden/scm/lib/hgcommits/src/strip.rs index 39d99bf578..be91f171f0 100644 --- a/eden/scm/lib/hgcommits/src/strip.rs +++ b/eden/scm/lib/hgcommits/src/strip.rs @@ -38,7 +38,7 @@ pub(crate) fn migrate_commits( let heads: Vec = orig .heads(set.clone())? .iter_rev()? - .collect::>>()?; + .collect::>>()?; let commits: Vec = set .iter_rev()? .map(|vertex| -> Result { diff --git a/eden/scm/lib/mutationstore/src/lib.rs b/eden/scm/lib/mutationstore/src/lib.rs index 50b884ac5e..2cefcc97e1 100644 --- a/eden/scm/lib/mutationstore/src/lib.rs +++ b/eden/scm/lib/mutationstore/src/lib.rs @@ -289,7 +289,7 @@ impl MutationStore { .iter() .map(|s| VertexName::copy_from(s.as_ref())) .collect::>(); - let parent_func = move |node| -> Result> { + let parent_func = move |node| -> dag::Result> { let mut result = Vec::new(); for entry in self.log.lookup(INDEX_SUCC, &node)? { let entry = MutationEntry::deserialize(&mut Cursor::new(entry?))?; diff --git a/eden/scm/lib/renderdag/src/render_utils.rs b/eden/scm/lib/renderdag/src/render_utils.rs index 43f465c927..a841e877c0 100644 --- a/eden/scm/lib/renderdag/src/render_utils.rs +++ b/eden/scm/lib/renderdag/src/render_utils.rs @@ -17,7 +17,7 @@ pub fn render_namedag( ) -> Result { let mut renderer = crate::GraphRowRenderer::new().output().build_box_drawing(); - let iter: Vec<_> = dag.all()?.iter()?.collect::>()?; + let iter: Vec<_> = dag.all()?.iter()?.collect::>()?; let mut out = String::new(); for node in iter {