1
Fork 0

collections: Convert statics to constants

This commit is contained in:
Alex Crichton 2014-10-06 16:15:54 -07:00
parent 34d66de52a
commit abb3d3e444

View file

@ -34,10 +34,10 @@ use slice::{Items, MutItems};
use slice;
// FIXME: #5244: need to manually update the TrieNode constructor
static SHIFT: uint = 4;
static SIZE: uint = 1 << SHIFT;
static MASK: uint = SIZE - 1;
static NUM_CHUNKS: uint = uint::BITS / SHIFT;
const SHIFT: uint = 4;
const SIZE: uint = 1 << SHIFT;
const MASK: uint = SIZE - 1;
const NUM_CHUNKS: uint = uint::BITS / SHIFT;
#[deriving(Clone)]
enum Child<T> {