mirror of
https://github.com/paradigmxyz/reth.git
synced 2026-01-09 15:28:01 -05:00
cfg: replace std feature gate alloc imports with extern crate alloc (#10861)
This commit is contained in:
@@ -9,11 +9,9 @@
|
||||
#![cfg_attr(docsrs, feature(doc_cfg, doc_auto_cfg))]
|
||||
#![cfg_attr(not(feature = "std"), no_std)]
|
||||
|
||||
#[cfg(not(feature = "std"))]
|
||||
extern crate alloc;
|
||||
#[cfg(not(feature = "std"))]
|
||||
use alloc::{boxed::Box, string::String};
|
||||
|
||||
use alloc::{boxed::Box, string::String};
|
||||
use alloy_eips::BlockNumHash;
|
||||
use alloy_primitives::B256;
|
||||
use derive_more::Display;
|
||||
|
||||
@@ -1,13 +1,11 @@
|
||||
//! Errors when computing the state root.
|
||||
|
||||
use alloc::string::ToString;
|
||||
use alloy_primitives::B256;
|
||||
use derive_more::Display;
|
||||
use nybbles::Nibbles;
|
||||
use reth_storage_errors::{db::DatabaseError, provider::ProviderError};
|
||||
|
||||
#[cfg(not(feature = "std"))]
|
||||
use alloc::string::ToString;
|
||||
|
||||
/// State root errors.
|
||||
#[derive(Display, Debug, PartialEq, Eq, Clone)]
|
||||
pub enum StateRootError {
|
||||
|
||||
Reference in New Issue
Block a user