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:
Chris Morgan 2013-07-12 23:17:59 +10:00
parent b8e95c4602
commit 5b656cfbcb

View file

@ -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 {