diff --git a/crates/trie/parallel/src/proof_task.rs b/crates/trie/parallel/src/proof_task.rs index 5342fff1eb..231b0cb32b 100644 --- a/crates/trie/parallel/src/proof_task.rs +++ b/crates/trie/parallel/src/proof_task.rs @@ -1082,7 +1082,7 @@ impl TrieNodeProvider for ProofTaskTrieNodeProvider { fn trie_node(&self, path: &Nibbles) -> Result, SparseTrieError> { /// Helper to convert `ProviderError` to `SparseTrieError` fn provider_err_to_trie_err(e: ProviderError) -> SparseTrieError { - SparseTrieErrorKind::Other(Box::new(std::io::Error::other(e.to_string()))).into() + SparseTrieErrorKind::Other(Box::new(e)).into() } /// Helper to convert channel recv error to `SparseTrieError`