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 {