Skip to content

Commit

Permalink
NO-JIRA: [Rust] Fix Clippy errors from Rust 1.79.0 (#2959)
Browse files Browse the repository at this point in the history
* NO-JIRA: [Rust] Fix Clippy errors from Rust 1.79.0

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>

* Allow unknown_lints to be able to build with older Rust than 1.79.0

manual_unwrap_or_default is introduced in 1.79.0

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>

---------

Signed-off-by: Martin Tzvetanov Grigorov <[email protected]>
  • Loading branch information
martin-g committed Jun 17, 2024
1 parent 66b2201 commit 2c484c6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 0 additions & 1 deletion lang/rust/avro/src/util.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@
use crate::{schema::Documentation, AvroResult, Error};
use serde_json::{Map, Value};
use std::{
i64,
io::Read,
sync::{
atomic::{AtomicBool, AtomicUsize, Ordering},
Expand Down
4 changes: 4 additions & 0 deletions lang/rust/avro_derive/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@
// specific language governing permissions and limitations
// under the License.

// for Rust versions older than 1.79.0
#![allow(unknown_lints)]
// Allow until https://github.com/TedDriggs/darling/pull/292 is resolved
#![allow(clippy::manual_unwrap_or_default)]
use darling::FromAttributes;
use proc_macro2::{Span, TokenStream};
use quote::quote;
Expand Down

0 comments on commit 2c484c6

Please sign in to comment.