Skip to content

Commit b20e559

Browse files
authored
Merge pull request #6 from golemcloud/operation_id_support
format
2 parents c6ffafd + 911a4e2 commit b20e559

File tree

1 file changed

+5
-6
lines changed

1 file changed

+5
-6
lines changed

src/rust/client_gen.rs

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -497,12 +497,11 @@ fn trait_method(
497497
) -> Result<Method> {
498498
let (result_code, result_type) = method_result(&op.op.responses.responses, ref_cache)?;
499499

500-
let name =
501-
if let Some(op_id) = &op.op.operation_id {
502-
op_id.to_case(Case::Snake)
503-
} else {
504-
op.path.strip_prefix(prefix_length).method_name(&op.method)
505-
};
500+
let name = if let Some(op_id) = &op.op.operation_id {
501+
op_id.to_case(Case::Snake)
502+
} else {
503+
op.path.strip_prefix(prefix_length).method_name(&op.method)
504+
};
506505

507506
Ok(Method {
508507
name,

0 commit comments

Comments
 (0)