Skip to content

Commit

Permalink
clipp
Browse files Browse the repository at this point in the history
  • Loading branch information
hashcashier committed Nov 1, 2024
1 parent 3e5014e commit 8b2e87c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion crates/preflight/src/db.rs
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@ impl<N: Network, R: CoreDriver, P: PreflightDriver<R, N>> From<Rescued<PrePostDB
impl<N: Network, R: CoreDriver, P: PreflightDriver<R, N>> PreflightDB<N, R, P> {
pub fn clear(&mut self) -> anyhow::Result<()> {
let cleared = Self::from(self.inner.db.db.borrow().db.clone());
Ok(drop(core::mem::replace(self, cleared)))
drop(core::mem::replace(self, cleared));
Ok(())
}

pub fn save_provider(&mut self) -> anyhow::Result<()> {
Expand Down

0 comments on commit 8b2e87c

Please sign in to comment.