Skip to content

Commit 8448645

Browse files
committed
Fix subset NamedTuple method
1 parent a2fa36d commit 8448645

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/varinfo.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -351,7 +351,7 @@ end
351351
# TODO(mhauru) Note that this could still generate an empty metadata object if none
352352
# of the lenses in `vns` are in `metadata`. Not sure if that's okay. Checking for
353353
# emptiness would make this type unstable again.
354-
:(NamedTuple{($sym,)}(tuple(subset(metadata.$sym, vns))))
354+
:((; $sym=subset(metadata.$sym, vns)))
355355
else
356356
:(NamedTuple{}())
357357
end

0 commit comments

Comments
 (0)