From 7d0d61d789c86003b44a90826335a5b05425a2f7 Mon Sep 17 00:00:00 2001 From: Skgland Date: Fri, 20 Feb 2026 22:45:09 +0100 Subject: [PATCH] remove no longer necessary allows --- src/arena.rs | 3 --- src/arithmetic.rs | 2 -- src/atom_table.rs | 3 --- src/heap_iter.rs | 3 --- src/machine/copier.rs | 2 -- src/machine/machine_indices.rs | 3 --- src/machine/streams.rs | 2 -- src/parser/ast.rs | 3 --- src/types.rs | 3 --- 9 files changed, 24 deletions(-) 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::*; -- 2.54.0