From: Skgland Date: Fri, 20 Feb 2026 21:45:09 +0000 (+0100) Subject: remove no longer necessary allows X-Git-Url: https://git.sagredo.dev/?a=commitdiff_plain;h=7d0d61d789c86003b44a90826335a5b05425a2f7;p=scryer-prolog.git remove no longer necessary allows --- diff --git a/src/arena.rs b/src/arena.rs index fa6faaa0..d4e949ba 100644 --- a/src/arena.rs +++ b/src/arena.rs @@ -1,6 +1,3 @@ -#![allow(clippy::new_without_default)] // annotating structs annotated with #[bitfield] doesn't work -#![allow(unused_parens)] // see mthom/scryer-prolog#3092 and rust-lang/rust#147126 - #[cfg(feature = "http")] use crate::http::{HttpListener, HttpResponse}; use crate::machine::heap::AllocError; diff --git a/src/arithmetic.rs b/src/arithmetic.rs index 9a70962f..a0cf61b0 100644 --- a/src/arithmetic.rs +++ b/src/arithmetic.rs @@ -1,5 +1,3 @@ -#![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 aac2d8b5..7f828654 100644 --- a/src/atom_table.rs +++ b/src/atom_table.rs @@ -1,6 +1,3 @@ -#![allow(clippy::new_without_default)] // annotating structs annotated with #[bitfield] doesn't work -#![allow(unused_parens)] // see mthom/scryer-prolog#3092 and rust-lang/rust#147126 - use crate::machine::heap::AllocError; use crate::parser::ast::MAX_ARITY; use crate::raw_block::*; diff --git a/src/heap_iter.rs b/src/heap_iter.rs index fed59451..9c35e710 100644 --- a/src/heap_iter.rs +++ b/src/heap_iter.rs @@ -1,6 +1,3 @@ -#![allow(clippy::new_without_default)] // annotating structs annotated with #[bitfield] doesn't work -#![allow(unused_parens)] // see mthom/scryer-prolog#3092 and rust-lang/rust#147126 - use crate::arena::Arena; use crate::forms::Number; #[cfg(test)] diff --git a/src/machine/copier.rs b/src/machine/copier.rs index dc55ba26..dec0f427 100644 --- a/src/machine/copier.rs +++ b/src/machine/copier.rs @@ -1,5 +1,3 @@ -#![allow(unused_parens)] // see mthom/scryer-prolog#3092 and rust-lang/rust#147126 - use fxhash::FxBuildHasher; use indexmap::IndexSet; diff --git a/src/machine/machine_indices.rs b/src/machine/machine_indices.rs index 1036ec2a..bfb8a2f3 100644 --- a/src/machine/machine_indices.rs +++ b/src/machine/machine_indices.rs @@ -1,6 +1,3 @@ -#![allow(clippy::new_without_default)] // annotating structs annotated with #[bitfield] doesn't work -#![allow(unused_parens)] // see mthom/scryer-prolog#3092 and rust-lang/rust#147126 - use crate::parser::ast::*; use crate::atom_table::*; diff --git a/src/machine/streams.rs b/src/machine/streams.rs index 2151ba74..57617400 100644 --- a/src/machine/streams.rs +++ b/src/machine/streams.rs @@ -1,5 +1,3 @@ -#![allow(unused_parens)] // see mthom/scryer-prolog#3092 and rust-lang/rust#147126 - use crate::arena::*; use crate::atom_table::*; use crate::functor_macro::*; diff --git a/src/parser/ast.rs b/src/parser/ast.rs index 823d3270..5ea1f116 100644 --- a/src/parser/ast.rs +++ b/src/parser/ast.rs @@ -1,6 +1,3 @@ -#![allow(clippy::new_without_default)] // annotating structs annotated with #[bitfield] doesn't work -#![allow(unused_parens)] // see mthom/scryer-prolog#3092 and rust-lang/rust#147126 - use crate::arena::*; use crate::atom_table::*; use crate::offset_table::*; diff --git a/src/types.rs b/src/types.rs index 8bb5b211..cdb86d42 100644 --- a/src/types.rs +++ b/src/types.rs @@ -1,6 +1,3 @@ -#![allow(clippy::new_without_default)] // annotating structs annotated with #[bitfield] doesn't work -#![allow(unused_parens)] // see mthom/scryer-prolog#3092 and rust-lang/rust#147126 - use crate::arena::*; use crate::atom_table::*; use crate::forms::*;