Skip to content

Commit 85b280a

Browse files
committed
Update nightly Rust error message matching
1 parent db7b782 commit 85b280a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/buffer.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -41,15 +41,15 @@ fn test_buffer() -> Result<()> {
4141
}
4242

4343
#[test]
44-
#[should_panic(expected = "range end index 14 out of range for slice of length 13")]
44+
#[should_panic(expected = "out of range for slice of length 13")]
4545
fn test_buffer_out_of_bounds_read() {
4646
let lua = Lua::new();
4747
let buf = lua.create_buffer(b"hello, world!").unwrap();
4848
_ = buf.read_bytes::<1>(13);
4949
}
5050

5151
#[test]
52-
#[should_panic(expected = "range end index 16 out of range for slice of length 13")]
52+
#[should_panic(expected = "out of range for slice of length 13")]
5353
fn test_buffer_out_of_bounds_write() {
5454
let lua = Lua::new();
5555
let buf = lua.create_buffer(b"hello, world!").unwrap();

0 commit comments

Comments
 (0)