Skip to content

Commit

Permalink
update tests
Browse files Browse the repository at this point in the history
  • Loading branch information
kubroid authored and akubrinsky-zetaglobal committed Feb 25, 2025
1 parent b84377e commit 0ba8a76
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions pilota-build/test_data/thrift/optional_parameter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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())?;
}
}
Expand Down Expand Up @@ -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()
}
Expand Down Expand Up @@ -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())?;
}
}
Expand Down Expand Up @@ -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()
}
Expand Down

0 comments on commit 0ba8a76

Please sign in to comment.