Skip to content

Commit

Permalink
Fix callbacks lifetime
Browse files Browse the repository at this point in the history
  • Loading branch information
gwenn authored and thomcc committed Dec 1, 2021
1 parent 6121585 commit 934e0c7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/functions.rs
Expand Up @@ -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));
Expand Down Expand Up @@ -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));
Expand Down

0 comments on commit 934e0c7

Please sign in to comment.