From: Bennet Bleßmann Date: Sat, 6 Jul 2024 11:04:55 +0000 (+0200) Subject: clippy: allow new without default X-Git-Tag: v0.10.0~127^2~29 X-Git-Url: https://git.sagredo.dev/?a=commitdiff_plain;h=1ff995fedba7a2ebcf70a318ddc9572857ea83ac;p=scryer-prolog.git clippy: allow new without default --- 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::*;