diff --git a/Cargo.toml b/Cargo.toml index 23b9d0d..8810190 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -11,6 +11,7 @@ [workspace.lints.clippy] explicit_auto_deref = "allow" missing_safety_doc = "deny" + needless_lifetimes = "allow" single_match = "allow" tabs_in_doc_comments = "allow" undocumented_unsafe_blocks = "deny" diff --git a/serde_avro_fast/src/schema/self_referential.rs b/serde_avro_fast/src/schema/self_referential.rs index c731820..910e9df 100644 --- a/serde_avro_fast/src/schema/self_referential.rs +++ b/serde_avro_fast/src/schema/self_referential.rs @@ -459,7 +459,7 @@ impl<'a> std::fmt::Debug for SchemaNode<'a> { use std::cell::Cell; struct SchemaNodeRenderingDepthGuard; thread_local! { - static DEPTH: Cell = Cell::new(0); + static DEPTH: Cell = const { Cell::new(0) }; } impl Drop for SchemaNodeRenderingDepthGuard { fn drop(&mut self) { diff --git a/serde_avro_fast/src/ser/serializer/decimal.rs b/serde_avro_fast/src/ser/serializer/decimal.rs index 9739c9c..ad868de 100644 --- a/serde_avro_fast/src/ser/serializer/decimal.rs +++ b/serde_avro_fast/src/ser/serializer/decimal.rs @@ -153,7 +153,7 @@ where if !scale_to_write.is_empty() { state .writer - .write_all(&scale_to_write) + .write_all(scale_to_write) .map_err(SerError::io)?; } Ok(()) diff --git a/serde_avro_fast/tests/round_trips.rs b/serde_avro_fast/tests/round_trips.rs index 34aed47..00967ea 100644 --- a/serde_avro_fast/tests/round_trips.rs +++ b/serde_avro_fast/tests/round_trips.rs @@ -388,7 +388,7 @@ fn test_big_decimal() { assert_eq!( apache_avro::to_avro_datum( - &&apache_avro::Schema::BigDecimal, + &apache_avro::Schema::BigDecimal, Value::BigDecimal("-0.2".parse().unwrap()) ) .unwrap(),