about summary refs log tree commit diff
path: root/library/stdarch/examples
diff options
context:
space:
mode:
authorEric Huss <eric@huss.org>2025-02-09 10:19:55 -0800
committerEric Huss <eric@huss.org>2025-02-09 12:57:14 -0800
commitd9ec0157da005ace756c7a92a81d32adfb58e273 (patch)
treee3d3e5f0a02e252c2e8fad1b1a4780236b64f36c /library/stdarch/examples
parent699a872630b0243f56d0d10cc45e2fba843956b0 (diff)
downloadrust-d9ec0157da005ace756c7a92a81d32adfb58e273.tar.gz
rust-d9ec0157da005ace756c7a92a81d32adfb58e273.zip
Format with style edition 2024
Diffstat (limited to 'library/stdarch/examples')
-rw-r--r--library/stdarch/examples/connect5.rs6
1 files changed, 1 insertions, 5 deletions
diff --git a/library/stdarch/examples/connect5.rs b/library/stdarch/examples/connect5.rs
index 88bb18878cc..0a357dd429a 100644
--- a/library/stdarch/examples/connect5.rs
+++ b/library/stdarch/examples/connect5.rs
@@ -560,11 +560,7 @@ fn search(pos: &Pos, alpha: i32, beta: i32, depth: i32, _ply: i32) -> i32 {
     assert_ne!(bm, MOVE_NONE);
     assert!(bs >= -EVAL_INF && bs <= EVAL_INF);
 
-    if _ply == 0 {
-        bm
-    } else {
-        bs
-    } //best move at the root node, best score elsewhere
+    if _ply == 0 { bm } else { bs } //best move at the root node, best score elsewhere
 }
 
 /// Evaluation function: give different scores to different patterns after a fixed depth.