Skip to content

Commit 04c455a

Browse files
committed
Add compat for ChainRulesCore v2
1 parent aafc680 commit 04c455a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

Project.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
name = "FiniteDifferences"
22
uuid = "26cc04aa-876d-5657-8c51-4c34ba976000"
3-
version = "0.12.33"
3+
version = "0.12.34"
44

55
[deps]
66
ChainRulesCore = "d360d2e6-b24c-11e9-a2a3-2a2ae2dbcce4"
@@ -12,7 +12,7 @@ SparseArrays = "2f01184e-e22b-5df5-ae63-d93ebab69eaf"
1212
StaticArrays = "90137ffa-7385-5640-81b9-e52037218182"
1313

1414
[compat]
15-
ChainRulesCore = "0.10.3, 1"
15+
ChainRulesCore = "0.10.3, 1, 2"
1616
LinearAlgebra = "<0.0.1, 1"
1717
Printf = "<0.0.1, 1"
1818
Random = "<0.0.1, 1"

test/to_vec.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,7 @@ end
190190
if T == Float64
191191
test_to_vec((a=5, b=randn(10, 11), c=(5, 4, 3)); check_inferred = VERSION v"1.2")
192192
else
193-
test_to_vec((a=3 + 2im, b=randn(T, 10, 11), c=(5+im, 2-im, 1+im)); check_inferred = VERSION v"1.2")
193+
test_to_vec((a=3 + 2im, b=randn(T, 10, 11), c=(5+im, 2-im, 1+im)); check_inferred = v"1.2" <= VERSION < v"1.12")
194194
end
195195
end
196196
@testset "Dictionary" begin

0 commit comments

Comments
 (0)