Skip to content

Commit 354dc0e

Browse files
MichaReisercamelid
andauthored
Update src/local_state.rs
Co-authored-by: Noah Lev <camelidcamel@gmail.com>
1 parent 18faece commit 354dc0e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/local_state.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ impl LocalState {
8686
let new_db = NonNull::from(db);
8787

8888
// Already attached? Assert that the database has not changed.
89-
// NOTE: It's important to use `addr_eq` here because `NonNull` not only compares the address but also the type's metadata.
89+
// NOTE: It's important to use `addr_eq` here because `NonNull::eq` not only compares the address but also the type's metadata.
9090
if !std::ptr::addr_eq(current_db.as_ptr(), new_db.as_ptr()) {
9191
panic!(
9292
"Cannot change database mid-query. current: {current_db:?}, new: {new_db:?}",

0 commit comments

Comments
 (0)