Skip to content

Commit abb3d3e

Browse files
committed
collections: Convert statics to constants
1 parent 34d66de commit abb3d3e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/libcollections/trie.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -34,10 +34,10 @@ use slice::{Items, MutItems};
3434
use slice;
3535

3636
// FIXME: #5244: need to manually update the TrieNode constructor
37-
static SHIFT: uint = 4;
38-
static SIZE: uint = 1 << SHIFT;
39-
static MASK: uint = SIZE - 1;
40-
static NUM_CHUNKS: uint = uint::BITS / SHIFT;
37+
const SHIFT: uint = 4;
38+
const SIZE: uint = 1 << SHIFT;
39+
const MASK: uint = SIZE - 1;
40+
const NUM_CHUNKS: uint = uint::BITS / SHIFT;
4141

4242
#[deriving(Clone)]
4343
enum Child<T> {

0 commit comments

Comments
 (0)