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/libstd/bitv.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/libstd/bitv.rs')
| -rw-r--r-- | src/libstd/bitv.rs | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libstd/bitv.rs b/src/libstd/bitv.rs index d4b4c7b097c..2dcebcb276c 100644 --- a/src/libstd/bitv.rs +++ b/src/libstd/bitv.rs @@ -27,7 +27,7 @@ fn small_mask(nbits: uint) -> uint { } pub impl SmallBitv { - static fn new(bits: uint) -> SmallBitv { + fn new(bits: uint) -> SmallBitv { SmallBitv {bits: bits} } @@ -124,7 +124,7 @@ fn big_mask(nbits: uint, elem: uint) -> uint { } pub impl BigBitv { - static fn new(storage: ~[uint]) -> BigBitv { + fn new(storage: ~[uint]) -> BigBitv { BigBitv {storage: storage} } @@ -256,7 +256,7 @@ priv impl Bitv { } pub impl Bitv { - static fn new(nbits: uint, init: bool) -> Bitv { + fn new(nbits: uint, init: bool) -> Bitv { let rep = if nbits <= uint::bits { Small(~SmallBitv::new(if init {!0} else {0})) } @@ -592,12 +592,12 @@ pub struct BitvSet { pub impl BitvSet { /// Creates a new bit vector set with initially no contents - static fn new() -> BitvSet { + fn new() -> BitvSet { BitvSet{ size: 0, bitv: BigBitv::new(~[0]) } } /// Creates a new bit vector set from the given bit vector - static fn from_bitv(bitv: Bitv) -> BitvSet { + fn from_bitv(bitv: Bitv) -> BitvSet { let mut size = 0; for bitv.ones |_| { size += 1; |
