From 1ff995fedba7a2ebcf70a318ddc9572857ea83ac Mon Sep 17 00:00:00 2001 From: =?utf8?q?Bennet=20Ble=C3=9Fmann?= Date: Sat, 6 Jul 2024 13:04:55 +0200 Subject: [PATCH] clippy: allow new without default --- src/arena.rs | 2 ++ src/arithmetic.rs | 2 ++ src/atom_table.rs | 2 ++ src/heap_iter.rs | 2 ++ src/machine/machine_indices.rs | 2 ++ src/parser/ast.rs | 2 ++ src/types.rs | 2 ++ 7 files changed, 14 insertions(+) diff --git a/src/arena.rs b/src/arena.rs index 9cf74ea8..bf78f39c 100644 --- a/src/arena.rs +++ b/src/arena.rs @@ -1,3 +1,5 @@ +#![allow(clippy::new_without_default)] // annotating structs annotated with #[bitfield] doesn't work + #[cfg(feature = "http")] use crate::http::{HttpListener, HttpResponse}; use crate::machine::loader::LiveLoadState; diff --git a/src/arithmetic.rs b/src/arithmetic.rs index 747ef65d..6b595c36 100644 --- a/src/arithmetic.rs +++ b/src/arithmetic.rs @@ -1,3 +1,5 @@ +#![allow(clippy::new_without_default)] // annotating structs annotated with #[bitfield] doesn't work + use crate::allocator::*; use crate::arena::*; use crate::atom_table::*; diff --git a/src/atom_table.rs b/src/atom_table.rs index 0f8c4951..5216f6a3 100644 --- a/src/atom_table.rs +++ b/src/atom_table.rs @@ -1,3 +1,5 @@ +#![allow(clippy::new_without_default)] // annotating structs annotated with #[bitfield] doesn't work + use crate::parser::ast::MAX_ARITY; use crate::raw_block::*; use crate::rcu::{Rcu, RcuRef}; diff --git a/src/heap_iter.rs b/src/heap_iter.rs index 4c1425ab..61fde0eb 100644 --- a/src/heap_iter.rs +++ b/src/heap_iter.rs @@ -1,3 +1,5 @@ +#![allow(clippy::new_without_default)] // annotating structs annotated with #[bitfield] doesn't work + #[cfg(test)] pub(crate) use crate::machine::gc::StacklessPreOrderHeapIter; diff --git a/src/machine/machine_indices.rs b/src/machine/machine_indices.rs index be47f4da..cecdef22 100644 --- a/src/machine/machine_indices.rs +++ b/src/machine/machine_indices.rs @@ -1,3 +1,5 @@ +#![allow(clippy::new_without_default)] // annotating structs annotated with #[bitfield] doesn't work + use crate::parser::ast::*; use crate::arena::*; diff --git a/src/parser/ast.rs b/src/parser/ast.rs index 7b3022ea..0e98aca8 100644 --- a/src/parser/ast.rs +++ b/src/parser/ast.rs @@ -1,3 +1,5 @@ +#![allow(clippy::new_without_default)] // annotating structs annotated with #[bitfield] doesn't work + use crate::arena::*; use crate::atom_table::*; use crate::machine::machine_indices::*; diff --git a/src/types.rs b/src/types.rs index 40209ebf..c83fb483 100644 --- a/src/types.rs +++ b/src/types.rs @@ -1,3 +1,5 @@ +#![allow(clippy::new_without_default)] // annotating structs annotated with #[bitfield] doesn't work + use crate::arena::*; use crate::atom_table::*; use crate::forms::*; -- 2.54.0