mirror of
				https://github.com/isar/rusqlite.git
				synced 2025-10-31 13:58:55 +08:00 
			
		
		
		
	Fix callbacks lifetime
This commit is contained in:
		| @@ -533,7 +533,7 @@ impl InnerConnection { | |||||||
|     ) -> Result<()> |     ) -> Result<()> | ||||||
|     where |     where | ||||||
|         A: RefUnwindSafe + UnwindSafe, |         A: RefUnwindSafe + UnwindSafe, | ||||||
|         D: Aggregate<A, T>, |         D: Aggregate<A, T> + 'static, | ||||||
|         T: ToSql, |         T: ToSql, | ||||||
|     { |     { | ||||||
|         let boxed_aggr: *mut D = Box::into_raw(Box::new(aggr)); |         let boxed_aggr: *mut D = Box::into_raw(Box::new(aggr)); | ||||||
| @@ -564,7 +564,7 @@ impl InnerConnection { | |||||||
|     ) -> Result<()> |     ) -> Result<()> | ||||||
|     where |     where | ||||||
|         A: RefUnwindSafe + UnwindSafe, |         A: RefUnwindSafe + UnwindSafe, | ||||||
|         W: WindowAggregate<A, T>, |         W: WindowAggregate<A, T> + 'static, | ||||||
|         T: ToSql, |         T: ToSql, | ||||||
|     { |     { | ||||||
|         let boxed_aggr: *mut W = Box::into_raw(Box::new(aggr)); |         let boxed_aggr: *mut W = Box::into_raw(Box::new(aggr)); | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user