We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 236c0cf commit 1438207Copy full SHA for 1438207
library/alloc/src/collections/vec_deque/mod.rs
@@ -58,7 +58,7 @@ mod tests;
58
const INITIAL_CAPACITY: usize = 7; // 2^3 - 1
59
const MINIMUM_CAPACITY: usize = 1; // 2 - 1
60
61
-const MAXIMUM_ZST_CAPACITY: usize = 1 << (core::mem::size_of::<usize>() * 8 - 1); // Largest possible power of two
+const MAXIMUM_ZST_CAPACITY: usize = 1 << (usize::BITS - 1); // Largest possible power of two
62
63
/// A double-ended queue implemented with a growable ring buffer.
64
///
0 commit comments