mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-26 11:31:37 +08:00
Fix tyvar_behind_raw_pointer warnings
This commit is contained in:
parent
402d5340d5
commit
3b5e224f82
@ -443,7 +443,7 @@ impl InnerConnection {
|
||||
}
|
||||
};
|
||||
|
||||
if (*pac).is_null() {
|
||||
if (*pac as *mut A).is_null() {
|
||||
*pac = Box::into_raw(Box::new((*boxed_aggr).init()));
|
||||
}
|
||||
|
||||
@ -470,7 +470,7 @@ impl InnerConnection {
|
||||
// sqlite3_aggregate_context(C,N) so that no pointless memory allocations occur.
|
||||
let a: Option<A> = match aggregate_context(ctx, 0) {
|
||||
Some(pac) => {
|
||||
if (*pac).is_null() {
|
||||
if (*pac as *mut A).is_null() {
|
||||
None
|
||||
} else {
|
||||
let a = Box::from_raw(*pac);
|
||||
|
Loading…
Reference in New Issue
Block a user