summaryrefslogtreecommitdiff
path: root/ext/tls/lib.rs
diff options
context:
space:
mode:
Diffstat (limited to 'ext/tls/lib.rs')
-rw-r--r--ext/tls/lib.rs7
1 files changed, 2 insertions, 5 deletions
diff --git a/ext/tls/lib.rs b/ext/tls/lib.rs
index fb4e8759d..123d35acf 100644
--- a/ext/tls/lib.rs
+++ b/ext/tls/lib.rs
@@ -10,7 +10,6 @@ use deno_core::anyhow::anyhow;
use deno_core::error::custom_error;
use deno_core::error::AnyError;
use deno_core::parking_lot::Mutex;
-use deno_core::Extension;
use rustls::client::HandshakeSignatureValid;
use rustls::client::ServerCertVerified;
@@ -35,10 +34,8 @@ use std::io::Cursor;
use std::sync::Arc;
use std::time::SystemTime;
-/// This extension has no runtime apis, it only exports some shared native functions.
-pub fn init_ops() -> Extension {
- Extension::builder(env!("CARGO_PKG_NAME")).build()
-}
+// This extension has no runtime apis, it only exports some shared native functions.
+deno_core::extension!(deno_tls);
struct DefaultSignatureVerification;