Skip to content

Commit df96c3c

Browse files
femtocleaner[bot]jrevels
authored andcommitted
Fix deprecations
1 parent b805c3c commit df96c3c

File tree

1 file changed

+6
-10
lines changed

1 file changed

+6
-10
lines changed

src/DiffTests.jl

Lines changed: 6 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -144,16 +144,12 @@ const MATRIX_TO_NUMBER_FUNCS = (det, mat2num_1, mat2num_2, mat2num_3, mat2num_4,
144144
# binary broadcast #
145145
####################
146146

147-
if VERSION >= v"0.6.0-dev.1614"
148-
const BINARY_BROADCAST_OPS = ((a, b) -> broadcast(+, a, b),
149-
(a, b) -> broadcast(-, a, b),
150-
(a, b) -> broadcast(*, a, b),
151-
(a, b) -> broadcast(/, a, b),
152-
(a, b) -> broadcast(\, a, b),
153-
(a, b) -> broadcast(^, a, b))
154-
else
155-
const BINARY_BROADCAST_OPS = (.+, .-, .*, ./, .\, .^)
156-
end
147+
const BINARY_BROADCAST_OPS = ((a, b) -> broadcast(+, a, b),
148+
(a, b) -> broadcast(-, a, b),
149+
(a, b) -> broadcast(*, a, b),
150+
(a, b) -> broadcast(/, a, b),
151+
(a, b) -> broadcast(\, a, b),
152+
(a, b) -> broadcast(^, a, b))
157153

158154
#################################
159155
# f(::Matrix, ::Matrix)::Number #

0 commit comments

Comments
 (0)