Skip to content

Commit 98a80d0

Browse files
committed
Fix deprecated constructor
1 parent 04cbde0 commit 98a80d0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

test/bench_deque.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ function batch_pushback!(v::Container, n::Int, e::T) where {Container,T}
1111
end
1212

1313
v = Int[]
14-
q = deque(Int)
14+
q = Deque{Int}()
1515

1616
batch_pushback!(v, 10, 0)
1717
t1 = @elapsed batch_pushback!(v, 10^7, 0)
@@ -33,7 +33,7 @@ function batch_pushfront!(v::Container, n::Int, e::T) where {Container,T}
3333
end
3434

3535
v = Int[]
36-
q = deque(Int)
36+
q = Deque{Int}()
3737

3838
batch_pushfront!(v, 10, 0)
3939
t1 = @elapsed batch_pushfront!(v, 10^7, 0)

0 commit comments

Comments
 (0)