From cbe69632126cdd30b9ff32e06dabe57a12ef4dfa Mon Sep 17 00:00:00 2001 From: Arseniy Lyashenko Date: Mon, 25 Sep 2023 20:45:04 +0300 Subject: [PATCH] Make traits crate public --- core-backend/src/funcs.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/core-backend/src/funcs.rs b/core-backend/src/funcs.rs index df226376569..63700c426c2 100644 --- a/core-backend/src/funcs.rs +++ b/core-backend/src/funcs.rs @@ -163,11 +163,11 @@ impl From for SysCallReturnValue { } } -pub trait SysCallContext: Sized { +pub(crate) trait SysCallContext: Sized { fn from_args(args: &[Value]) -> Result<(Self, &[Value]), HostError>; } -pub trait SysCall { +pub(crate) trait SysCall { type Context: SysCallContext; fn execute( @@ -177,7 +177,7 @@ pub trait SysCall { ) -> Result<(u64, T), HostError>; } -pub trait SysCallBuilder { +pub(crate) trait SysCallBuilder { fn build(self, args: &[Value]) -> Result; }