File tree Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Expand file tree Collapse file tree 2 files changed +2
-6
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: f9695a6256a2473636d3e16b5347cddf592fd00d
2
+ refs/heads/master: ffe268606370e67bc312d92ccad39546c7646fdc
3
3
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4
4
refs/heads/snap-stage3: ec0258a381b88b5574e3f8ce72ae553ac3a574b7
5
5
refs/heads/try: 7c6c492fb2af9a85f21ff952942df3523b22fd17
Original file line number Diff line number Diff line change @@ -486,17 +486,13 @@ impl Bitv {
486
486
!self . none ( )
487
487
}
488
488
489
- pub fn init_to_vec ( & self , i : uint ) -> uint {
490
- return if self . get ( i) { 1 } else { 0 } ;
491
- }
492
-
493
489
/**
494
490
* Converts `self` to a vector of `uint` with the same length.
495
491
*
496
492
* Each `uint` in the resulting vector has either value `0u` or `1u`.
497
493
*/
498
494
pub fn to_vec ( & self ) -> Vec < uint > {
499
- Vec :: from_fn ( self . nbits , |x| self . init_to_vec ( x ) )
495
+ Vec :: from_fn ( self . nbits , |i| if self . get ( i ) { 1 } else { 0 } )
500
496
}
501
497
502
498
/**
You can’t perform that action at this time.
0 commit comments