[ruby/prism] Remove category
keyword from warn
call
`category` is only supported from Ruby 3.0 onwards and prism can still run with Ruyb 2.7 https://github.com/ruby/prism/commit/335a193851
This commit is contained in:
parent
e5e160475b
commit
b5e9a2da4c
@ -9,7 +9,7 @@ module Prism
|
||||
location = location[0].label if location
|
||||
suggest = replacements.map { |replacement| "#{self.class}##{replacement}" }
|
||||
|
||||
warn(<<~MSG, category: :deprecated)
|
||||
warn(<<~MSG)
|
||||
[deprecation]: #{self.class}##{location} is deprecated and will be \
|
||||
removed in the next major version. Use #{suggest.join("/")} instead.
|
||||
#{(caller(1, 3) || []).join("\n")}
|
||||
|
Loading…
x
Reference in New Issue
Block a user