From 5abaeb3d6712b54f3309df968ebee39e544d0fcc Mon Sep 17 00:00:00 2001 From: Matthias Krüger Date: Mon, 2 Mar 2020 18:53:56 +0100 Subject: Simplify conditions like x + 1 <= y to x < y --- src/liballoc/collections/btree/node.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/liballoc') diff --git a/src/liballoc/collections/btree/node.rs b/src/liballoc/collections/btree/node.rs index c1bd68a020a..362755f8b7f 100644 --- a/src/liballoc/collections/btree/node.rs +++ b/src/liballoc/collections/btree/node.rs @@ -1191,7 +1191,7 @@ impl<'a, K, V> Handle, K, V, marker::Internal>, marker:: let right_len = right_node.len(); // necessary for correctness, but in a private module - assert!(left_len + right_len + 1 <= CAPACITY); + assert!(left_len + right_len < CAPACITY); unsafe { ptr::write( -- cgit 1.4.1-3-g733a5