Skip to content

Commit 66d1ebf

Browse files
Tweak type annotation in adjsort
1 parent d3503f0 commit 66d1ebf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/topologies/halfedge.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -219,7 +219,7 @@ end
219219
function adjsort(elems::AbstractVector{<:Connectivity})
220220
# initialize list of adjacent elements
221221
# with first element from original list
222-
list = map(indices, elems)
222+
list::Vector{Tuple{Vararg{Int}}} = map(indices, elems)
223223
adjs = similar(list, 0)
224224
push!(adjs, popfirst!(list))
225225

@@ -231,7 +231,7 @@ function adjsort(elems::AbstractVector{<:Connectivity})
231231
# one vertex with the last adjacent element
232232
found = false
233233
vinds = last(adjs)
234-
for i::Int in vinds
234+
for i in vinds
235235
not_i = (filter(!=(i), vinds)...,)
236236
for j in reverse(eachindex(list))
237237
# equivalent to `length(vinds ∩ list[j]) > 1` but more efficient (no allocs(?))

0 commit comments

Comments
 (0)