Skip to content

Commit f1a8046

Browse files
committed
revert to generated functions
1 parent cfad0eb commit f1a8046

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/algorithms.jl

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,8 @@ end
2929
Algorithm{Name}(; kwargs...) where {Name} = Algorithm{Name}(NamedTuple(kwargs))
3030

3131
# Utility function to canonicalize keys
32-
Base.@assume_effects :foldable _canonicalize_namedtuple(nt::NamedTuple{N}) where {N} =
33-
NamedTuple{(Tuple(sort(collect(N))))}(nt)
32+
@generated _canonicalize_namedtuple(nt::NamedTuple{N}) where {N} =
33+
:(NamedTuple{$(Tuple(sort(collect(N))))}(nt))
3434

3535
name(alg::Algorithm) = name(typeof(alg))
3636
name(::Type{<:Algorithm{N}}) where {N} = N

0 commit comments

Comments
 (0)