std: Demode bitv

This commit is contained in:
Brian Anderson 2012-09-19 19:07:58 -07:00
parent 6cb3ce9772
commit 1643794e01

View File

@ -1,3 +1,6 @@
#[forbid(deprecated_mode)];
#[forbid(deprecated_pattern)];
use vec::{to_mut, from_elem}; use vec::{to_mut, from_elem};
export Bitv, from_bytes, from_bools, from_fn; export Bitv, from_bytes, from_bools, from_fn;
@ -95,7 +98,7 @@ struct BigBitv {
mut storage: ~[mut uint] mut storage: ~[mut uint]
} }
fn BigBitv(-storage: ~[mut uint]) -> BigBitv { fn BigBitv(+storage: ~[mut uint]) -> BigBitv {
BigBitv {storage: storage} BigBitv {storage: storage}
} }