From 4a2197b5b8b402e6a6d364cd8f6cdaf88d3756fa Mon Sep 17 00:00:00 2001 From: Kousuke Saruta Date: Thu, 14 Sep 2023 05:06:41 +0900 Subject: [PATCH] AVRO-3855: [Rust] Fix clippy error with Rust 1.65.0 --- .github/workflows/test-lang-rust-clippy.yml | 3 ++- lang/rust/avro/src/schema.rs | 2 -- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/.github/workflows/test-lang-rust-clippy.yml b/.github/workflows/test-lang-rust-clippy.yml index adb8efe961f..13bf179aa1c 100644 --- a/.github/workflows/test-lang-rust-clippy.yml +++ b/.github/workflows/test-lang-rust-clippy.yml @@ -52,6 +52,7 @@ jobs: - uses: actions/checkout@v4 - uses: dtolnay/rust-toolchain@nightly with: - toolchain: stable + rust-version: ${{ matrix.rust }} + toolchain: ${{ matrix.rust }} components: clippy - run: cargo clippy --all-features --all-targets -- -Dclippy::all -Dunused_imports diff --git a/lang/rust/avro/src/schema.rs b/lang/rust/avro/src/schema.rs index e811f91bdaf..f6d780e498b 100644 --- a/lang/rust/avro/src/schema.rs +++ b/lang/rust/avro/src/schema.rs @@ -723,7 +723,6 @@ impl RecordField { } _ => { let resolved = avro_value - .to_owned() .resolve_internal(field_schema, names, &field_schema.namespace(), &None) .is_ok(); @@ -1635,7 +1634,6 @@ impl Parser { if let Some(ref value) = default { let resolved = types::Value::from(value.clone()) - .to_owned() .resolve_enum(&symbols, &Some(value.to_string()), &None) .is_ok(); if !resolved {