]> Repositorios git - scryer-prolog.git/commitdiff
fix some lint warnings
authorSkgland <[email protected]>
Sat, 24 Jan 2026 03:13:26 +0000 (04:13 +0100)
committerBennet Bleßmann <[email protected]>
Sat, 24 Jan 2026 03:13:26 +0000 (04:13 +0100)
src/debray_allocator.rs
src/parser/ast.rs

index 30fae2041cd86a2161f00c65dc50a0c9dbea70b4..6988420ffb0722f1d91aceff8b6e5e029994c3c6 100644 (file)
@@ -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 }
     }
index f9aa94f916f8e81b55b7fdaaa70b941e5014a579..c8d046e7ca88c7ce3ed77565269db49d92fe8f0f 100644 (file)
@@ -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};