From b070009af3429567e69f98ea79578ec98109409b Mon Sep 17 00:00:00 2001 From: vms Date: Sun, 9 Aug 2020 23:02:41 +0300 Subject: [PATCH] make non generic interface of FCE private --- engine/src/engine.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/engine/src/engine.rs b/engine/src/engine.rs index f9695b40..c660736a 100644 --- a/engine/src/engine.rs +++ b/engine/src/engine.rs @@ -51,7 +51,7 @@ impl FCE { self.call_(module_name.as_ref(), func_name.as_ref(), argument) } - pub fn call_( + fn call_( &mut self, module_name: &str, func_name: &str, @@ -74,7 +74,7 @@ impl FCE { self.load_module_(name.into(), wasm_bytes, config) } - pub fn load_module_( + fn load_module_( &mut self, name: String, wasm_bytes: &[u8], @@ -99,7 +99,7 @@ impl FCE { self.unload_module_(name.as_ref()) } - pub fn unload_module_(&mut self, module_name: &str) -> Result<()> { + fn unload_module_(&mut self, module_name: &str) -> Result<()> { match self.modules.remove(module_name) { Some(_) => Ok(()), None => Err(FCEError::NoSuchModule(module_name.to_string())),