Skip to content

Commit 58498f9

Browse files
committed
Type-assert the return type of collect(...) in TOML
This prevents invalidations.
1 parent a3cf9b1 commit 58498f9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

stdlib/TOML/src/print.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,7 @@ function print_integer(io::IO, value::Integer)
117117
end
118118

119119
function print_inline_table(f::Function, io::IO, value::AbstractDict, sorted::Bool)
120-
vkeys = collect(keys(value))
120+
vkeys = collect(keys(value))::AbstractArray
121121
if sorted
122122
sort!(vkeys)
123123
end

0 commit comments

Comments
 (0)