summaryrefslogtreecommitdiff
path: root/ext/digest/sha2/sha2init.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2019-08-21 16:31:26 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2019-08-22 00:19:55 +0900
commit74c6662af5d9748baff7c32e8f0baf7996dd898e (patch)
treeafdd921e0e957c0dc988f8be931e4bd2010b59e4 /ext/digest/sha2/sha2init.c
parentc030cec7cac3bacd230b87c9610bc67d8b89ab26 (diff)
Hoisted out rb_digest_namespace
Diffstat (limited to 'ext/digest/sha2/sha2init.c')
-rw-r--r--ext/digest/sha2/sha2init.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/ext/digest/sha2/sha2init.c b/ext/digest/sha2/sha2init.c
index 9fd8ece..99450bb 100644
--- a/ext/digest/sha2/sha2init.c
+++ b/ext/digest/sha2/sha2init.c
@@ -42,11 +42,9 @@ Init_sha2(void)
FOREACH_BITLEN(DECLARE_ALGO_CLASS)
- rb_require("digest");
-
id_metadata = rb_intern_const("metadata");
- mDigest = rb_path2class("Digest");
+ mDigest = rb_digest_namespace();
cDigest_Base = rb_path2class("Digest::Base");
#define DEFINE_ALGO_CLASS(bitlen) \