Skip to content

Commit 068e55b

Browse files
femtocleaner[bot]KristofferC
authored andcommitted
Fix deprecations (#97)
1 parent c4431c0 commit 068e55b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/metrics.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ struct RenyiDivergence{T <: Real} <: PreMetric
7272
is_one::Bool
7373
is_inf::Bool
7474

75-
function (::Type{RenyiDivergence{T}})(q) where {T}
75+
function RenyiDivergence{T}(q) where {T}
7676
# There are four different cases:
7777
# simpler to separate them out now, not over and over in eval_op()
7878
is_zero = q zero(T)

0 commit comments

Comments
 (0)