This is an automated email from the ASF dual-hosted git repository. mgrigorov pushed a commit to branch fix-minor-warnings-from-rust-1.66.0 in repository https://gitbox.apache.org/repos/asf/avro.git
commit b0088b8d9e6821f91ffa142dd57552c9fa2c03b2 Author: Martin Tzvetanov Grigorov <[email protected]> AuthorDate: Fri Dec 16 09:25:31 2022 +0200 Fix lint error in IT test error: casting to the same type is unnecessary (`i64` -> `i64`) --> avro/tests/io.rs:135:64 | 135 | let encoded = to_avro_datum(&Schema::Long, Value::Long(*number as i64)).unwrap(); | ^^^^^^^^^^^^^^ help: try: `*number` | = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_cast = note: `-D clippy::unnecessary-cast` implied by `-D clippy::all` Signed-off-by: Martin Tzvetanov Grigorov <[email protected]> --- lang/rust/avro/tests/io.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lang/rust/avro/tests/io.rs b/lang/rust/avro/tests/io.rs index e3d8a6836..fc316b060 100644 --- a/lang/rust/avro/tests/io.rs +++ b/lang/rust/avro/tests/io.rs @@ -132,7 +132,7 @@ fn test_binary_int_encoding() { #[test] fn test_binary_long_encoding() { for (number, hex_encoding) in BINARY_ENCODINGS.iter() { - let encoded = to_avro_datum(&Schema::Long, Value::Long(*number as i64)).unwrap(); + let encoded = to_avro_datum(&Schema::Long, Value::Long(*number)).unwrap(); assert_eq!(&encoded, hex_encoding); } }
