From 5b656cfbcb723efcd4d9b4f73b1e51ddcbc3e593 Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Fri, 12 Jul 2013 23:17:59 +1000 Subject: 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. --- src/libextra/bitv.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') diff --git a/src/libextra/bitv.rs b/src/libextra/bitv.rs index 0a5a7d11c6c..9f71dc8a1af 100644 --- a/src/libextra/bitv.rs +++ b/src/libextra/bitv.rs @@ -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 { -- cgit 1.4.1-3-g733a5