Skip to content

Commit 5d64197

Browse files
committed
Make it way harder to unsafely mutate page contents
1 parent da629fd commit 5d64197

File tree

5 files changed

+219
-168
lines changed

5 files changed

+219
-168
lines changed

core/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1795,7 +1795,7 @@ impl Connection {
17951795
if content.buffer.is_empty() {
17961796
return Ok(false);
17971797
}
1798-
page.copy_from_slice(content.as_ptr());
1798+
page.copy_from_slice(content.as_slice());
17991799
Ok(true)
18001800
}
18011801

0 commit comments

Comments
 (0)