File tree Expand file tree Collapse file tree 1 file changed +2
-6
lines changed
library/alloc/src/collections Expand file tree Collapse file tree 1 file changed +2
-6
lines changed Original file line number Diff line number Diff line change @@ -32,12 +32,8 @@ mod tests;
3232
3333const INITIAL_CAPACITY : usize = 7 ; // 2^3 - 1
3434const MINIMUM_CAPACITY : usize = 1 ; // 2 - 1
35- #[ cfg( target_pointer_width = "16" ) ]
36- const MAXIMUM_ZST_CAPACITY : usize = 1 << ( 16 - 1 ) ; // Largest possible power of two
37- #[ cfg( target_pointer_width = "32" ) ]
38- const MAXIMUM_ZST_CAPACITY : usize = 1 << ( 32 - 1 ) ; // Largest possible power of two
39- #[ cfg( target_pointer_width = "64" ) ]
40- const MAXIMUM_ZST_CAPACITY : usize = 1 << ( 64 - 1 ) ; // Largest possible power of two
35+
36+ const MAXIMUM_ZST_CAPACITY : usize = 1 << ( ( core:: mem:: size_of :: < usize > ( ) << 3 ) - 1 ) ; // Largest possible power of two
4137
4238/// A double-ended queue implemented with a growable ring buffer.
4339///
You can’t perform that action at this time.
0 commit comments