mirror of
https://github.com/tokio-rs/bytes.git
synced 2026-08-14 00:00:13 +02:00
Fix errors and warnings with current rust nightly
This commit is contained in:
@@ -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];
|
||||
|
||||
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user