Fix callbacks lifetime

This commit is contained in:
gwenn 2021-11-30 21:08:03 +01:00 committed by Thom Chiovoloni
parent 612158507e
commit 934e0c709e

View File

@ -533,7 +533,7 @@ impl InnerConnection {
) -> Result<()>
where
A: RefUnwindSafe + UnwindSafe,
D: Aggregate<A, T>,
D: Aggregate<A, T> + 'static,
T: ToSql,
{
let boxed_aggr: *mut D = Box::into_raw(Box::new(aggr));
@ -564,7 +564,7 @@ impl InnerConnection {
) -> Result<()>
where
A: RefUnwindSafe + UnwindSafe,
W: WindowAggregate<A, T>,
W: WindowAggregate<A, T> + 'static,
T: ToSql,
{
let boxed_aggr: *mut W = Box::into_raw(Box::new(aggr));