summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorJiayu Liu <jiayu@hey.com>2022-06-26 05:00:25 +0200
committerJens Geyer <jensg@apache.org>2022-09-05 22:56:04 +0200
commitaa85593c89b540b821b07f7611f5ac5de29c6665 (patch)
treededa02ddea251fcfe859ffbf8c82d853be145911 /test
parentf066d84ffb7fe2eb0dc3b7e7cd0d0417a1ae7963 (diff)
downloadthrift-aa85593c89b540b821b07f7611f5ac5de29c6665.tar.gz
THRIFT-5600: rust lib to upgrade to edition 2021
Client: rs Patch: Jiayu Liu This closes #2628
Diffstat (limited to 'test')
-rw-r--r--test/rs/Cargo.toml2
-rw-r--r--test/rs/src/bin/test_server.rs2
-rw-r--r--test/rs/src/lib.rs6
3 files changed, 8 insertions, 2 deletions
diff --git a/test/rs/Cargo.toml b/test/rs/Cargo.toml
index 401282a5e..b039fff4c 100644
--- a/test/rs/Cargo.toml
+++ b/test/rs/Cargo.toml
@@ -1,7 +1,7 @@
[package]
name = "thrift-test"
version = "0.1.0"
-edition = "2018"
+edition = "2021"
license = "Apache-2.0"
authors = ["Apache Thrift Developers <dev@thrift.apache.org>"]
publish = false
diff --git a/test/rs/src/bin/test_server.rs b/test/rs/src/bin/test_server.rs
index a27bd7776..92a4bcc45 100644
--- a/test/rs/src/bin/test_server.rs
+++ b/test/rs/src/bin/test_server.rs
@@ -254,7 +254,7 @@ impl ThriftTestSyncHandler for ThriftTestSyncHandlerImpl {
info!("testMapMap({})", hello);
let mut inner_map_0: BTreeMap<i32, i32> = BTreeMap::new();
- for i in -4..0 {
+ for i in -4..0_i32 {
inner_map_0.insert(i, i);
}
diff --git a/test/rs/src/lib.rs b/test/rs/src/lib.rs
index 9cfd7a66f..7c5362026 100644
--- a/test/rs/src/lib.rs
+++ b/test/rs/src/lib.rs
@@ -15,5 +15,11 @@
// specific language governing permissions and limitations
// under the License.
+// FIXME - need changes in gen before lifting this exception
+#![allow(
+ clippy::match_single_binding,
+ clippy::unnecessary_wraps,
+ clippy::derivable_impls
+)]
mod thrift_test;
pub use crate::thrift_test::*;