Skip to content

Commit aeed06f

Browse files
committed
Add nospecialize to with_output_color
1 parent 7100c36 commit aeed06f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

base/util.jl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ Printing with the color `:nothing` will print the string without modifications.
6666
"""
6767
text_colors
6868

69-
function with_output_color(f::Function, color::Union{Int, Symbol}, io::IO, args...; bold::Bool = false)
69+
function with_output_color(@nospecialize(f::Function), color::Union{Int, Symbol}, io::IO, args...; bold::Bool = false)
7070
buf = IOBuffer()
7171
iscolor = get(io, :color, false)::Bool
7272
try f(IOContext(buf, io), args...)

0 commit comments

Comments
 (0)