From fd85f840cd707c31d08fa836562127e249c9ff62 Mon Sep 17 00:00:00 2001 From: Yiyu Lin Date: Sun, 15 Jan 2023 12:06:46 +0800 Subject: refactor: clean up `unwrap` and `clone` (#17282) Co-authored-by: Divy Srivastava --- core/lib.rs | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'core/lib.rs') diff --git a/core/lib.rs b/core/lib.rs index 308724fdd..2333ff75f 100644 --- a/core/lib.rs +++ b/core/lib.rs @@ -37,6 +37,8 @@ pub use sourcemap; pub use url; pub use v8; +pub use deno_ops::op; + pub use crate::async_cancel::CancelFuture; pub use crate::async_cancel::CancelHandle; pub use crate::async_cancel::CancelTryFuture; @@ -110,13 +112,12 @@ pub use crate::runtime::Snapshot; pub use crate::runtime::V8_WRAPPER_OBJECT_INDEX; pub use crate::runtime::V8_WRAPPER_TYPE_INDEX; pub use crate::source_map::SourceMapGetter; -pub use deno_ops::op; pub fn v8_version() -> &'static str { v8::V8::get_version() } -/// An internal module re-exporting funcs used by the #[op] (`deno_ops`) macro +/// An internal module re-exporting functions used by the #[op] (`deno_ops`) macro #[doc(hidden)] pub mod _ops { pub use super::bindings::throw_type_error; -- cgit v1.2.3