From 0ba8a7643d1aefcbe2c73cba5a245c3bb56c4a8b Mon Sep 17 00:00:00 2001 From: Alexey Kubrinsky Date: Tue, 25 Feb 2025 18:37:32 +0100 Subject: [PATCH] update tests --- pilota-build/test_data/thrift/optional_parameter.rs | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/pilota-build/test_data/thrift/optional_parameter.rs b/pilota-build/test_data/thrift/optional_parameter.rs index 721b5cf..67ac5a5 100644 --- a/pilota-build/test_data/thrift/optional_parameter.rs +++ b/pilota-build/test_data/thrift/optional_parameter.rs @@ -24,7 +24,7 @@ pub mod optional_parameter { name: "TestTestResultRecv", })?; match self { - TestTestResultRecv::Ok(ref value) => { + TestTestResultRecv::Ok(value) => { __protocol.write_faststr_field(0, (value).clone())?; } } @@ -136,9 +136,7 @@ pub mod optional_parameter { __protocol.struct_begin_len(&::pilota::thrift::TStructIdentifier { name: "TestTestResultRecv", }) + match self { - TestTestResultRecv::Ok(ref value) => { - __protocol.faststr_field_len(Some(0), value) - } + TestTestResultRecv::Ok(value) => __protocol.faststr_field_len(Some(0), value), } + __protocol.field_stop_len() + __protocol.struct_end_len() } @@ -381,7 +379,7 @@ pub mod optional_parameter { name: "TestTestResultSend", })?; match self { - TestTestResultSend::Ok(ref value) => { + TestTestResultSend::Ok(value) => { __protocol.write_faststr_field(0, (value).clone())?; } } @@ -493,9 +491,7 @@ pub mod optional_parameter { __protocol.struct_begin_len(&::pilota::thrift::TStructIdentifier { name: "TestTestResultSend", }) + match self { - TestTestResultSend::Ok(ref value) => { - __protocol.faststr_field_len(Some(0), value) - } + TestTestResultSend::Ok(value) => __protocol.faststr_field_len(Some(0), value), } + __protocol.field_stop_len() + __protocol.struct_end_len() }