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) --- cli/ops/errors.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'cli/ops/errors.rs') diff --git a/cli/ops/errors.rs b/cli/ops/errors.rs index 5be6e0737..a219b462d 100644 --- a/cli/ops/errors.rs +++ b/cli/ops/errors.rs @@ -67,18 +67,12 @@ fn op_apply_source_map( } #[op] -fn op_format_diagnostic( - _state: &mut OpState, - args: Value, -) -> Result { +fn op_format_diagnostic(args: Value) -> Result { let diagnostic: Diagnostics = serde_json::from_value(args)?; Ok(json!(diagnostic.to_string())) } #[op] -fn op_format_file_name( - _state: &mut OpState, - file_name: String, -) -> Result { +fn op_format_file_name(file_name: String) -> Result { Ok(format_file_name(&file_name)) } -- cgit v1.2.3