diff options
| author | Patrick Walton <pcwalton@mimiga.net> | 2013-03-21 19:07:54 -0700 |
|---|---|---|
| committer | Patrick Walton <pcwalton@mimiga.net> | 2013-03-22 10:27:39 -0700 |
| commit | 4634f7edaefafa3e5ece93499e08992b4c8c7145 (patch) | |
| tree | aa695c6ea7ffa0d19919584e9636b3f78b1f40ab /src/libcore/trie.rs | |
| parent | 1616ffd0c2627502b1015b6388480ed7429ef042 (diff) | |
| download | rust-4634f7edaefafa3e5ece93499e08992b4c8c7145.tar.gz rust-4634f7edaefafa3e5ece93499e08992b4c8c7145.zip | |
librustc: Remove all uses of `static` from functions. rs=destatic
Diffstat (limited to 'src/libcore/trie.rs')
| -rw-r--r-- | src/libcore/trie.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/libcore/trie.rs b/src/libcore/trie.rs index 3b9d3ad4b73..7afe7e0d3d4 100644 --- a/src/libcore/trie.rs +++ b/src/libcore/trie.rs @@ -139,7 +139,7 @@ impl<T> Map<uint, T> for TrieMap<T> { pub impl<T> TrieMap<T> { /// Create an empty TrieMap #[inline(always)] - static pure fn new() -> TrieMap<T> { + pure fn new() -> TrieMap<T> { TrieMap{root: TrieNode::new(), length: 0} } @@ -192,7 +192,7 @@ impl Mutable for TrieSet { impl TrieSet { /// Create an empty TrieSet #[inline(always)] - static pure fn new() -> TrieSet { + pure fn new() -> TrieSet { TrieSet{map: TrieMap::new()} } @@ -220,7 +220,7 @@ struct TrieNode<T> { impl<T> TrieNode<T> { #[inline(always)] - static pure fn new() -> TrieNode<T> { + pure fn new() -> TrieNode<T> { // FIXME: #5244: [Nothing, ..SIZE] should be possible without Copy TrieNode{count: 0, children: [Nothing, Nothing, Nothing, Nothing, |
