From c2e2d2398b86e7bcc89ab534e3a3af54cf8374b5 Mon Sep 17 00:00:00 2001 From: Benoit Daloze Date: Sat, 27 Jan 2024 11:05:30 +0100 Subject: [PATCH] [ruby/prism] Call #inspect on diagnostic levels * So it's clear it is a Symbol. Before: ... @level=warning_verbose_true> After: ... @level=:warning_verbose_true> https://github.com/ruby/prism/commit/84503643b9 --- lib/prism/parse_result.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/prism/parse_result.rb b/lib/prism/parse_result.rb index 27e03fe23b..5bb7ac7e9e 100644 --- a/lib/prism/parse_result.rb +++ b/lib/prism/parse_result.rb @@ -329,7 +329,7 @@ module Prism # Returns a string representation of this error. def inspect - "#" + "#" end end @@ -358,7 +358,7 @@ module Prism # Returns a string representation of this warning. def inspect - "#" + "#" end end