Skip to content

Commit

Permalink
Fix a DeepSource warning
Browse files Browse the repository at this point in the history
  • Loading branch information
Electron100 committed Oct 27, 2024
1 parent 9ac8ee2 commit 900cd65
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions butane_core/src/db/sync_adapter.rs
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ impl<T> SyncAdapter<T> {
fn chain<S>(&self, inner: S) -> SyncAdapter<S> {
SyncAdapter {
runtime_handle: self.runtime_handle.clone(),
_runtime: self._runtime.as_ref().map(|r| r.clone()),
_runtime: self._runtime.as_ref().cloned(),
inner,
}
}
Expand Down Expand Up @@ -146,7 +146,7 @@ where
// We can't use chain because of the lifetimes and mutable borrows below,
// so set up these runtime clones now.
let runtime_handle = self.runtime_handle.clone();
let runtime = self._runtime.as_ref().map(|r| r.clone());
let runtime = self._runtime.as_ref().cloned();
let transaction: TransactionAsync =
self.runtime_handle.block_on(self.inner.transaction())?;
let transaction_adapter = SyncAdapter {
Expand Down

0 comments on commit 900cd65

Please sign in to comment.