Skip to content

Commit fc0e312

Browse files
JamesWrigleyKristofferC
authored andcommitted
Type-assert the return type of collect(...) in TOML (#59932)
(cherry picked from commit fda084f)
1 parent c53224f commit fc0e312

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
@@ -118,7 +118,7 @@ function print_integer(io::IO, value::Integer)
118118
end
119119

120120
function print_inline_table(f::MbyFunc, io::IO, value::AbstractDict, sorted::Bool)
121-
vkeys = collect(keys(value))
121+
vkeys = collect(keys(value))::AbstractArray
122122
if sorted
123123
sort!(vkeys)
124124
end

0 commit comments

Comments
 (0)