From 678cbdc786168b1152ff8383591f616a7e1eef24 Mon Sep 17 00:00:00 2001 From: Tomasz Kurcz Date: Wed, 5 Oct 2022 11:05:39 +0200 Subject: [PATCH] Seal `HostFunctionKind` --- lib/api/src/sys/externals/function.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/api/src/sys/externals/function.rs b/lib/api/src/sys/externals/function.rs index 1b90a43c462..8392e9b4203 100644 --- a/lib/api/src/sys/externals/function.rs +++ b/lib/api/src/sys/externals/function.rs @@ -1105,7 +1105,7 @@ mod inner { /// the trait system to automatically generate the appropriate /// host functions. #[doc(hidden)] - pub trait HostFunctionKind {} + pub trait HostFunctionKind: private::HostFunctionKindSealed {} /// An empty struct to help Rust typing to determine /// when a `HostFunction` does have an environment.