aboutsummaryrefslogtreecommitdiff
path: root/genapi/main.py
diff options
context:
space:
mode:
Diffstat (limited to 'genapi/main.py')
-rwxr-xr-xgenapi/main.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/genapi/main.py b/genapi/main.py
index ff481ac..f8df9e2 100755
--- a/genapi/main.py
+++ b/genapi/main.py
@@ -636,7 +636,7 @@ self.req(rpc_request).map(|x| x.into_inner())
"""
fn_signature = f"""fn {operation.name}({formatted_params_args}) ->
-Result<{resp_type}, AnyError>"""
+Result<{resp_type}>"""
fn_signatures.append(fn_signature + ";")
functions.append(f"{fn_signature} {{ {function_interior} }}")
@@ -670,7 +670,7 @@ def main() -> None:
print("use chrono::{DateTime, Utc};")
print("use serde::{Deserialize, Serialize};")
print("use crate::json_rpc::RpcRequest;")
- print("use crate::AnyError;")
+ print("use crate::Result;")
print(generate_rust_functions(aping.operations))
print(generate_rust_types(aping.simple_types))
print(generate_rust_data_types(aping.data_types))