summaryrefslogtreecommitdiff
path: root/cli/ops
diff options
context:
space:
mode:
Diffstat (limited to 'cli/ops')
-rw-r--r--cli/ops/errors.rs10
1 files changed, 2 insertions, 8 deletions
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<Value, AnyError> {
+fn op_format_diagnostic(args: Value) -> Result<Value, AnyError> {
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<String, AnyError> {
+fn op_format_file_name(file_name: String) -> Result<String, AnyError> {
Ok(format_file_name(&file_name))
}