From b91da21b652cb5c74406bfb630d0e6d0f9f52629 Mon Sep 17 00:00:00 2001 From: ratankaliani Date: Fri, 31 Jan 2025 19:41:10 +0000 Subject: [PATCH] fix: can't use const --- bin/host/src/interop/fetcher.rs | 3 +-- crates/mpt/src/list_walker.rs | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/bin/host/src/interop/fetcher.rs b/bin/host/src/interop/fetcher.rs index 007759545..2faf1acac 100644 --- a/bin/host/src/interop/fetcher.rs +++ b/bin/host/src/interop/fetcher.rs @@ -2,7 +2,7 @@ //! preimages from a remote source serving the super-chain (interop) proof mode. use super::InteropHostCli; -use crate::{single::SingleChainFetcher, KeyValueStore}; +use crate::{single::SingleChainFetcher, KeyValueStore, PreimageServer}; use alloy_consensus::{Header, Sealed, TxEnvelope, EMPTY_ROOT_HASH}; use alloy_eips::{ eip2718::Encodable2718, @@ -19,7 +19,6 @@ use anyhow::{anyhow, Result}; use async_trait::async_trait; use kona_driver::Driver; use kona_executor::TrieDBProvider; -use kona_host::{KeyValueStore, PreimageServer}; use kona_preimage::{ errors::{PreimageOracleError, PreimageOracleResult}, BidirectionalChannel, HintReader, HintRouter, HintWriter, OracleReader, OracleServer, diff --git a/crates/mpt/src/list_walker.rs b/crates/mpt/src/list_walker.rs index 57045532d..702ec8247 100644 --- a/crates/mpt/src/list_walker.rs +++ b/crates/mpt/src/list_walker.rs @@ -77,7 +77,7 @@ where /// Takes the inner list of the [OrderedListWalker], returning it and setting the inner list to /// [None]. - pub const fn take_inner(&mut self) -> Option> { + pub fn take_inner(&mut self) -> Option> { self.inner.take() }