Skip to content

Commit f2600d9

Browse files
authored
Update DataStructures to v0.19 (#337)
1 parent 9a343be commit f2600d9

File tree

3 files changed

+17
-7
lines changed

3 files changed

+17
-7
lines changed

.github/workflows/ci.yml

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,8 +41,18 @@ jobs:
4141
- uses: julia-actions/cache@v2
4242
- uses: julia-actions/julia-buildpkg@v1
4343
- uses: julia-actions/julia-runtest@v1
44-
with:
45-
depwarn: error
44+
#with:
45+
# depwarn: error # Had to disable it because DataStructures does
46+
# 1 dependency had output during precompilation:
47+
# ┌ DataStructures
48+
# │ WARNING: DataStructures.DisjointSets is deprecated, use DisjointSet instead.
49+
# │ likely near /home/blegat/.julia/dev/DataStructures/src/deprecations.jl:9
50+
# │ WARNING: DataStructures.DisjointSets is deprecated, use DisjointSet instead.
51+
# │ likely near /home/blegat/.julia/dev/DataStructures/src/deprecations.jl:9
52+
# │ WARNING: DataStructures.DisjointSets is deprecated, use DisjointSet instead.
53+
# │ likely near /home/blegat/.julia/dev/DataStructures/src/deprecations.jl:9
54+
#
55+
# No idea why, try enabling it back later
4656
- uses: julia-actions/julia-processcoverage@v1
4757
- uses: codecov/codecov-action@v4
4858
with:

Project.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,6 @@ MutableArithmetics = "d8a4904e-b15c-11e9-3269-09a3773c0cb0"
1212

1313
[compat]
1414
ChainRulesCore = "1"
15-
DataStructures = "0.17.7, 0.18"
15+
DataStructures = "0.19"
1616
MutableArithmetics = "0.3, 1"
1717
julia = "1.6"

src/operators.jl

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,7 @@ function polynomial_merge!(
111111
if buffer === nothing
112112
buffer = DataStructures.Queue{typeof(t0)}()
113113
end
114-
DataStructures.enqueue!(buffer, t0)
114+
push!(buffer, t0)
115115
i += 1
116116
end
117117
set(k, get2(j))
@@ -148,7 +148,7 @@ function polynomial_merge!(
148148
j += 1
149149
end
150150
if comp >= 0
151-
DataStructures.dequeue!(buffer)
151+
popfirst!(buffer)
152152
end
153153
# if `comp` is zero, we called `combine` so `t`
154154
# might not be kept. If `comp` is not zero, we
@@ -157,7 +157,7 @@ function polynomial_merge!(
157157
continue
158158
end
159159
if k <= n1
160-
DataStructures.enqueue!(buffer, get1(i))
160+
push!(buffer, get1(i))
161161
set(k, t)
162162
else
163163
push(t)
@@ -176,7 +176,7 @@ function polynomial_merge!(
176176
set(k + n, get1(k))
177177
end
178178
for k in i:(i+n-1)
179-
set(k, DataStructures.dequeue!(buffer))
179+
set(k, popfirst!(buffer))
180180
end
181181
n1 += n
182182
else

0 commit comments

Comments
 (0)