From ef67495b95f1152f534959646fe337b8442730ae Mon Sep 17 00:00:00 2001 From: Tor Erlend Fjelde Date: Wed, 6 Sep 2023 12:45:15 +0100 Subject: [PATCH] Update src/varinfo.jl Co-authored-by: github-actions[bot] <41898282+github-actions[bot]@users.noreply.github.com> --- src/varinfo.jl | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/varinfo.jl b/src/varinfo.jl index 90bfd74f7..61f2b051c 100644 --- a/src/varinfo.jl +++ b/src/varinfo.jl @@ -1098,7 +1098,9 @@ end function nested_setindex_maybe!(vi::UntypedVarInfo, val, vn::VarName) return _nested_setindex_maybe!(vi, getmetadata(vi, vn), val, vn) end -function nested_setindex_maybe!(vi::VarInfo{<:NamedTuple{names}}, val, vn::VarName{sym}) where {names,sym} +function nested_setindex_maybe!( + vi::VarInfo{<:NamedTuple{names}}, val, vn::VarName{sym} +) where {names,sym} return if sym in names _nested_setindex_maybe!(vi, getmetadata(vi, vn), val, vn) else