OmmyZhang commented on code in PR #2632:
URL: https://github.com/apache/thrift/pull/2632#discussion_r923035978


##########
test/rs/src/bin/test_client.rs:
##########
@@ -492,8 +483,8 @@ fn make_thrift_calls(
         s_cmp_nested_2.insert(Numberz::SIX, empty_insanity);
 
         let mut s_cmp: BTreeMap<UserId, BTreeMap<Numberz, Insanity>> = 
BTreeMap::new();
-        s_cmp.insert(1 as UserId, s_cmp_nested_1);
-        s_cmp.insert(2 as UserId, s_cmp_nested_2);
+        s_cmp.insert(1_i64, s_cmp_nested_1);

Review Comment:
   @allengeorge `1 as UserId` will cause clippy::unnecessary_cast
   
   ```
   error: casting integer literal to `i64` is unnecessary
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to