You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@thrift.apache.org by jk...@apache.org on 2019/07/01 15:40:48 UTC
[thrift] 01/02: minor change
This is an automated email from the ASF dual-hosted git repository.
jking pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/thrift.git
commit 0124c4d66b4e550c1c56c45e994f842b0638d8a2
Author: jose andres <jo...@gmail.com>
AuthorDate: Tue May 14 15:13:17 2019 +0200
minor change
upgrade to thrift 0.12.0
[THRIFT-4529] - Rust enum variants are now camel-cased instead of uppercased to conform to Rust naming conventions
---
tutorial/rs/README.md | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/tutorial/rs/README.md b/tutorial/rs/README.md
index 384e9f8..a686b9b 100644
--- a/tutorial/rs/README.md
+++ b/tutorial/rs/README.md
@@ -84,14 +84,14 @@ fn run() -> thrift::Result<()> {
// two-way with some return
let res = client.calculate(
72,
- Work::new(7, 8, Operation::MULTIPLY, None)
+ Work::new(7, 8, Operation::Multiply, None)
)?;
println!("multiplied 7 and 8, got {}", res);
// two-way and returns a Thrift-defined exception
let res = client.calculate(
77,
- Work::new(2, 0, Operation::DIVIDE, None)
+ Work::new(2, 0, Operation::Divide, None)
);
match res {
Ok(v) => panic!("shouldn't have succeeded with result {}", v),