Fix errors and warnings with current rust nightly

This commit is contained in:
Florian Hartwig
2015-03-19 16:23:29 +01:00
parent e806a59b4a
commit 3f9b7f6d46
5 changed files with 5 additions and 7 deletions
+1 -1
View File
@@ -26,7 +26,7 @@ pub fn test_index() {
}
#[test]
#[should_fail]
#[should_panic]
pub fn test_index_out_of_range() {
let s = SeqByteStr::from_slice(gen_bytes(2000).as_slice());
let _ = s[2001];
+1 -1
View File
@@ -26,7 +26,7 @@ pub fn test_index() {
}
#[test]
#[should_fail]
#[should_panic]
pub fn test_index_out_of_range() {
let s = SmallByteStr::from_slice(gen_bytes(3).as_slice()).unwrap();
let _ = s[2001];