Skip to content

Commit b312497

Browse files
committed
fix method ambiguities
1 parent 731f22d commit b312497

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

src/cursors.jl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -364,6 +364,7 @@ TreeCursor(::HasNodeType, ::IndexedChildren, ::ParentLinks, ::SiblingLinks, node
364364
TreeCursor(::HasNodeType, ::NonIndexedChildren, ::ParentLinks, ::SiblingLinks, node) = StableCursor(node)
365365

366366
TreeCursor(::NodeTypeUnknown, ::IndexedChildren, ::ParentLinks, ::SiblingLinks, node) = IndexedCursor(node)
367+
TreeCursor(::NodeTypeUnknown, ::IndexedChildren, ::ImplicitParents, ::StoredSiblings, node) = IndexedCursor(node)
367368

368369
TreeCursor(::NodeTypeUnknown, ::ChildIndexing, ::StoredParents, ::StoredSiblings, node) = TrivialCursor(node)
369370

src/iteration.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ Base.eltype(ti::TreeIterator) = eltype(typeof(ti))
7070

7171
Base.IteratorSize(::Type{<:TreeIterator}) = SizeUnknown()
7272

73-
function Base.iterate(ti::TreeIterator, s::Union{Nothing,IteratorState}=initial(statetype(ti), ti.root))
73+
function Base.iterate(ti::TreeIterator, s=initial(statetype(ti), ti.root))
7474
isnothing(s) && return nothing
7575
(nodevalue(s.cursor), next(s))
7676
end

0 commit comments

Comments
 (0)