Skip to content

Commit

Permalink
chore: don't leak concrete UnsafeFuture types
Browse files Browse the repository at this point in the history
  • Loading branch information
jkomyno committed Sep 3, 2024
1 parent 578efcc commit c2572c2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion query-engine/driver-adapters/src/proxy.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ impl TransactionContextProxy {
Ok(Box::new(tx))
}

pub fn start_transaction(&self) -> UnsafeFuture<impl Future<Output = quaint::Result<Box<JsTransaction>>> + '_> {
pub fn start_transaction(&self) -> impl Future<Output = quaint::Result<Box<JsTransaction>>> + '_ {
UnsafeFuture(self.start_transaction_inner())
}
}
Expand Down
2 changes: 1 addition & 1 deletion query-engine/driver-adapters/src/transaction.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ impl JsTransactionContext {
Self { inner, tx_ctx_proxy }
}

pub fn start_transaction(&self) -> UnsafeFuture<impl Future<Output = quaint::Result<Box<JsTransaction>>> + '_> {
pub fn start_transaction(&self) -> impl Future<Output = quaint::Result<Box<JsTransaction>>> + '_ {
UnsafeFuture(self.tx_ctx_proxy.start_transaction())
}
}
Expand Down

0 comments on commit c2572c2

Please sign in to comment.