Skip to content

Commit

Permalink
AVRO-3855: [Rust] Fix clippy error with Rust 1.65.0 (#2494)
Browse files Browse the repository at this point in the history
  • Loading branch information
sarutak authored Sep 14, 2023
1 parent ed0ed99 commit 8be3239
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/test-lang-rust-clippy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 0 additions & 2 deletions lang/rust/avro/src/schema.rs
Original file line number Diff line number Diff line change
Expand Up @@ -723,7 +723,6 @@ impl RecordField {
}
_ => {
let resolved = avro_value
.to_owned()
.resolve_internal(field_schema, names, &field_schema.namespace(), &None)
.is_ok();

Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 8be3239

Please sign in to comment.