Skip to content

Commit 8c282c0

Browse files
committed
🐛 Fix loading of Net::IMAP::Config for JRuby
1 parent b97b414 commit 8c282c0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lib/net/imap/config/attr_type_coercion.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ def self.attr_accessor(attr, type: nil)
6060
NilOrInteger = safe{->val { Integer val unless val.nil? }}
6161

6262
Enum = ->(*enum) {
63-
sh_enum = Ractor.make_shareable(enum)
64-
safe_enum = safe{sh_enum}
63+
safe_enum = safe{enum}
6564
expected = -"one of #{safe_enum.map(&:inspect).join(", ")}"
6665
safe{->val {
6766
return val if safe_enum.include?(val)

0 commit comments

Comments
 (0)