mirror of
https://github.com/isar/rusqlite.git
synced 2024-11-27 03:51:38 +08:00
Merge pull request #338 from gwenn/future-compatibility
Fix tyvar_behind_raw_pointer warnings
This commit is contained in:
commit
718b985d86
@ -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()));
|
*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.
|
// sqlite3_aggregate_context(C,N) so that no pointless memory allocations occur.
|
||||||
let a: Option<A> = match aggregate_context(ctx, 0) {
|
let a: Option<A> = match aggregate_context(ctx, 0) {
|
||||||
Some(pac) => {
|
Some(pac) => {
|
||||||
if (*pac).is_null() {
|
if (*pac as *mut A).is_null() {
|
||||||
None
|
None
|
||||||
} else {
|
} else {
|
||||||
let a = Box::from_raw(*pac);
|
let a = Box::from_raw(*pac);
|
||||||
|
Loading…
Reference in New Issue
Block a user