Skip to content

Commit

Permalink
Make sealed work on older version
Browse files Browse the repository at this point in the history
  • Loading branch information
DelSkayn committed Nov 18, 2024
1 parent d0cb245 commit 7baef80
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion core/src/context/builder.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ use crate::{context::AsyncContext, runtime::AsyncRuntime};
use crate::{qjs, util::Sealed, Context, Result, Runtime};

/// The internal trait to add JS builtins
#[allow(private_bounds)]
pub trait Intrinsic: Sealed {
/// # Safety
/// Do not need implement it yourself instead you may use predefined intrinsics from [`intrinsic`] module.
Expand Down
2 changes: 1 addition & 1 deletion core/src/util.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
//! Module with some util types.
/// A trait for preventing implementing traits which should not be implemented outside of rquickjs.
pub(crate) trait Sealed {}
pub trait Sealed {}

#[cfg(feature = "futures")]
pub use self::futures::*;
Expand Down

0 comments on commit 7baef80

Please sign in to comment.