mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-22 02:00:00 +03:00
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:
@@ -493,7 +493,7 @@ pub fn to_str(&self) -> ~str {
|
||||
*
|
||||
* 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 {
|
||||
|
||||
Reference in New Issue
Block a user