You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@avro.apache.org by "Martin Tzvetanov Grigorov (Jira)" <ji...@apache.org> on 2023/08/18 13:15:00 UTC
[jira] [Assigned] (AVRO-3836) [Rust] Fix the build with Rust 1.65.0
[ https://issues.apache.org/jira/browse/AVRO-3836?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Martin Tzvetanov Grigorov reassigned AVRO-3836:
-----------------------------------------------
> [Rust] Fix the build with Rust 1.65.0
> -------------------------------------
>
> Key: AVRO-3836
> URL: https://issues.apache.org/jira/browse/AVRO-3836
> Project: Apache Avro
> Issue Type: Improvement
> Components: rust
> Reporter: Martin Tzvetanov Grigorov
> Assignee: Martin Tzvetanov Grigorov
> Priority: Major
>
> The build of the Rust SDK fails with Rust 1.65.0 (the minimum supported rust version) with:
> {code:java}
> error: use of `or` followed by a function call
> --> avro/src/schema.rs:264:57
> |
> 264 | .or_else(|| complex.string("namespace").or(enclosing_namespace.clone()))
> | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ help: try this: `or_else(|| enclosing_namespace.clone())`
> |
> = note: `-D clippy::or-fun-call` implied by `-D clippy::all`
> = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#or_fun_callerror: redundant clone
> --> avro/src/schema.rs:1427:40
> |
> 1427 | let fully_qualified_name = name.clone();
> | ^^^^^^^^ help: remove this
> |
> = note: `-D clippy::redundant-clone` implied by `-D clippy::all`
> note: this value is dropped without further use
> --> avro/src/schema.rs:1427:36
> |
> 1427 | let fully_qualified_name = name.clone();
> | ^^^^
> = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#redundant_cloneerror: could not compile `apache-avro` due to 2 previous errors
> warning: build failed, waiting for other jobs to finish...
> error: could not compile `apache-avro` due to 2 previous errors
> {code}
> and
> {code:java}
> error: you are deriving `PartialEq` and can implement `Eq`
> --> avro/tests/schema.rs:1456:52
> |
> 1456 | #[derive(Deserialize, Serialize, Debug, Clone, PartialEq)]
> | ^^^^^^^^^ help: consider deriving `Eq` as well: `PartialEq, Eq`
> |
> = note: `-D clippy::derive-partial-eq-without-eq` implied by `-D clippy::all`
> = help: for further information visit https://rust-lang.github.io/rust-clippy/master/index.html#derive_partial_eq_without_eqerror: could not compile `apache-avro` due to previous error
> {code}
--
This message was sent by Atlassian Jira
(v8.20.10#820010)