Skip to content

Commit 7ee25d4

Browse files
committed
Remove Ref workaround
1 parent 88ac22c commit 7ee25d4

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/parameters.jl

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,8 +110,7 @@ end
110110
function _retrieve!(rng, p, r::NominalRange, X)
111111
return p .= getindex.(
112112
Ref(r.values),
113-
# Wrap rng in Ref for compatibility with Julia <= 1.3
114-
rand.(Ref(rng), Categorical.(X[i,:] for i in axes(X, 1)))
113+
rand.(rng, Categorical.(X[i,:] for i in axes(X, 1)))
115114
)
116115
end
117116

0 commit comments

Comments
 (0)