Track Rust nightlies

This commit is contained in:
Carl Lerche
2015-03-25 12:44:38 -07:00
parent 53624038ad
commit 8f526231d8
9 changed files with 41 additions and 41 deletions
+3 -3
View File
@@ -7,7 +7,7 @@ pub fn test_slice_round_trip() {
let mut dst = vec![];
let src = gen_bytes(2000);
let s = SeqByteStr::from_slice(src.as_slice());
let s = SeqByteStr::from_slice(&src);
assert_eq!(2000, s.len());
s.buf().read(&mut dst).unwrap();
@@ -18,7 +18,7 @@ pub fn test_slice_round_trip() {
pub fn test_index() {
let src = gen_bytes(2000);
let s = SeqByteStr::from_slice(src.as_slice());
let s = SeqByteStr::from_slice(&src);
for i in 0..2000 {
assert_eq!(src[i], s[i]);
@@ -28,6 +28,6 @@ pub fn test_index() {
#[test]
#[should_panic]
pub fn test_index_out_of_range() {
let s = SeqByteStr::from_slice(gen_bytes(2000).as_slice());
let s = SeqByteStr::from_slice(&gen_bytes(2000));
let _ = s[2001];
}