Skip to content

Commit d5b4040

Browse files
committed
Make it way harder to unsafely mutate page contents
1 parent c7e0aab commit d5b4040

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
@@ -1784,7 +1784,7 @@ impl Connection {
17841784
if content.buffer.is_empty() {
17851785
return Ok(false);
17861786
}
1787-
page.copy_from_slice(content.as_ptr());
1787+
page.copy_from_slice(content.as_slice());
17881788
Ok(true)
17891789
}
17901790

0 commit comments

Comments
 (0)