Skip to content

Commit

Permalink
Removed redundant call to _name_type in the @syms macro definition
Browse files Browse the repository at this point in the history
  • Loading branch information
bowenszhu committed May 21, 2024
1 parent 38ec2bb commit 52e364d
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/types.jl
Original file line number Diff line number Diff line change
Expand Up @@ -951,8 +951,6 @@ macro syms(xs...)
defs = map(xs) do x
n, t = _name_type(x)
T = esc(t)
nt = _name_type(x)
n, t = nt.name, nt.type
:($(esc(n)) = Sym{$T}($(Expr(:quote, n))))
end
Expr(:block, defs...,
Expand Down

0 comments on commit 52e364d

Please sign in to comment.