We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent db7b782 commit 85b280aCopy full SHA for 85b280a
tests/buffer.rs
@@ -41,15 +41,15 @@ fn test_buffer() -> Result<()> {
41
}
42
43
#[test]
44
-#[should_panic(expected = "range end index 14 out of range for slice of length 13")]
+#[should_panic(expected = "out of range for slice of length 13")]
45
fn test_buffer_out_of_bounds_read() {
46
let lua = Lua::new();
47
let buf = lua.create_buffer(b"hello, world!").unwrap();
48
_ = buf.read_bytes::<1>(13);
49
50
51
52
-#[should_panic(expected = "range end index 16 out of range for slice of length 13")]
53
fn test_buffer_out_of_bounds_write() {
54
55
0 commit comments