diff --git a/lib/net/imap/config/attr_type_coercion.rb b/lib/net/imap/config/attr_type_coercion.rb index bd796976..282ec7f0 100644 --- a/lib/net/imap/config/attr_type_coercion.rb +++ b/lib/net/imap/config/attr_type_coercion.rb @@ -60,8 +60,7 @@ def self.attr_accessor(attr, type: nil) NilOrInteger = safe{->val { Integer val unless val.nil? }} Enum = ->(*enum) { - sh_enum = Ractor.make_shareable(enum) - safe_enum = safe{sh_enum} + safe_enum = safe{enum} expected = -"one of #{safe_enum.map(&:inspect).join(", ")}" safe{->val { return val if safe_enum.include?(val)