From 8dd17d8d52012e52d1633572874decee140b9b79 Mon Sep 17 00:00:00 2001 From: wout Date: Tue, 11 Feb 2020 12:46:13 +0000 Subject: [PATCH] Fix deprecation warning on JSON::PullParser --- src/money/currency/json.cr | 2 +- src/money/money/json.cr | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/money/currency/json.cr b/src/money/currency/json.cr index 6325dcd0..986e285f 100644 --- a/src/money/currency/json.cr +++ b/src/money/currency/json.cr @@ -19,7 +19,7 @@ class Money::Currency def self.new(pull : JSON::PullParser) case pull.kind - when :string + when JSON::PullParser::Kind::String find(pull.read_string) else previous_def diff --git a/src/money/money/json.cr b/src/money/money/json.cr index ee1b8aea..4227bf89 100644 --- a/src/money/money/json.cr +++ b/src/money/money/json.cr @@ -15,7 +15,7 @@ struct Money def self.new(pull : JSON::PullParser) case pull.kind - when :string + when JSON::PullParser::Kind::String parse(pull.read_string) else previous_def