From 3b5e224f829993b6f53841b4d65a802649dc117d Mon Sep 17 00:00:00 2001 From: gwenn Date: Sat, 10 Mar 2018 18:07:30 +0100 Subject: [PATCH] Fix tyvar_behind_raw_pointer warnings --- src/functions.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/functions.rs b/src/functions.rs index 0d2c0be..0f792d2 100644 --- a/src/functions.rs +++ b/src/functions.rs @@ -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 = 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);