Replace owned with borrowed pointer.
As pointed out by cmr, there's no need for it to be owned there. That was also in the original scope of #7711.
This commit is contained in:
parent
b8e95c4602
commit
5b656cfbcb
1 changed files with 1 additions and 1 deletions
|
@ -493,7 +493,7 @@ impl Bitv {
|
|||
*
|
||||
* Both the bitvector and vector must have the same length.
|
||||
*/
|
||||
pub fn eq_vec(&self, v: ~[bool]) -> bool {
|
||||
pub fn eq_vec(&self, v: &[bool]) -> bool {
|
||||
assert_eq!(self.nbits, v.len());
|
||||
let mut i = 0;
|
||||
while i < self.nbits {
|
||||
|
|
Loading…
Add table
Reference in a new issue