We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c6ffafd commit 911a4e2Copy full SHA for 911a4e2
src/rust/client_gen.rs
@@ -497,12 +497,11 @@ fn trait_method(
497
) -> Result<Method> {
498
let (result_code, result_type) = method_result(&op.op.responses.responses, ref_cache)?;
499
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
- };
+ let name = if let Some(op_id) = &op.op.operation_id {
+ op_id.to_case(Case::Snake)
+ } else {
+ op.path.strip_prefix(prefix_length).method_name(&op.method)
+ };
506
507
Ok(Method {
508
name,
0 commit comments