Skip to content

Commit

Permalink
Avoid AbstractString in GitError struct to make extraction inferred. (J…
Browse files Browse the repository at this point in the history
…uliaLang#40402)

This significantly reduces the number of invalidated methods when
loading ProgressLogging.
  • Loading branch information
andreasnoack committed Apr 8, 2021
1 parent 35157d9 commit 9814bd6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion stdlib/LibGit2/src/error.jl
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ end
struct GitError <: Exception
class::Class
code::Code
msg::AbstractString
msg::String
end
Base.show(io::IO, err::GitError) = print(io, "GitError(Code:$(err.code), Class:$(err.class), $(err.msg))")

Expand Down

0 comments on commit 9814bd6

Please sign in to comment.