We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 18faece commit 354dc0eCopy full SHA for 354dc0e
src/local_state.rs
@@ -86,7 +86,7 @@ impl LocalState {
86
let new_db = NonNull::from(db);
87
88
// 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.
+ // NOTE: It's important to use `addr_eq` here because `NonNull::eq` not only compares the address but also the type's metadata.
90
if !std::ptr::addr_eq(current_db.as_ptr(), new_db.as_ptr()) {
91
panic!(
92
"Cannot change database mid-query. current: {current_db:?}, new: {new_db:?}",
0 commit comments