From bd481bf095f920a419ea55543f911e087f98f36f Mon Sep 17 00:00:00 2001 From: Aaron O'Mullan Date: Wed, 16 Mar 2022 00:33:46 +0100 Subject: feat(ops): optional OpState (#13954) --- core/ops_builtin.rs | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) (limited to 'core/ops_builtin.rs') diff --git a/core/ops_builtin.rs b/core/ops_builtin.rs index 92f77f954..d8729688e 100644 --- a/core/ops_builtin.rs +++ b/core/ops_builtin.rs @@ -54,7 +54,7 @@ pub fn op_resources( } #[op] -pub fn op_void_sync(_state: &mut OpState) -> Result<(), Error> { +pub fn op_void_sync() -> Result<(), Error> { Ok(()) } @@ -101,11 +101,7 @@ pub fn op_metrics( /// Builtin utility to print to stdout/stderr #[op] -pub fn op_print( - _state: &mut OpState, - msg: String, - is_err: bool, -) -> Result<(), Error> { +pub fn op_print(msg: String, is_err: bool) -> Result<(), Error> { if is_err { stderr().write_all(msg.as_bytes())?; stderr().flush().unwrap(); -- cgit v1.2.3