From: Skgland Date: Sat, 24 Jan 2026 03:13:26 +0000 (+0100) Subject: fix some lint warnings X-Git-Url: https://git.sagredo.dev/?a=commitdiff_plain;h=dfad71bc6e1a9bd84f610c143e0bfcd15560b387;p=scryer-prolog.git fix some lint warnings --- diff --git a/src/debray_allocator.rs b/src/debray_allocator.rs index 30fae204..6988420f 100644 --- a/src/debray_allocator.rs +++ b/src/debray_allocator.rs @@ -106,7 +106,7 @@ impl BranchStack { let branch_num = self .last() .map(|occurrences| occurrences.current_branch_num.clone()) - .unwrap_or_else(|| BranchNumber::default()); + .unwrap_or_default(); BranchDesignator { branch_num } } diff --git a/src/parser/ast.rs b/src/parser/ast.rs index f9aa94f9..c8d046e7 100644 --- a/src/parser/ast.rs +++ b/src/parser/ast.rs @@ -4,7 +4,6 @@ use crate::arena::*; use crate::atom_table::*; use crate::offset_table::*; -use crate::parser::char_reader::*; use crate::types::HeapCellValueTag; use std::cell::{Cell, Ref, RefCell, RefMut};