]> Repositorios git - scryer-prolog.git/commitdiff
fix clippy lint warning
authorSkgland <[email protected]>
Fri, 20 Feb 2026 21:47:08 +0000 (22:47 +0100)
committerBennet Bleßmann <[email protected]>
Fri, 20 Feb 2026 21:47:08 +0000 (22:47 +0100)
src/debray_allocator.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 }
     }