From d7d85bd2bc3fd7c97042a0273ccd54aafcef9b73 Mon Sep 17 00:00:00 2001 From: Alexsander Falcucci Date: Tue, 23 Jan 2024 17:04:17 +0100 Subject: [PATCH] refactor: usage of anyhow::context in cfg_fs block - remove the `use anyhow::context;` from the start of the file. - add `use anyhow::context;` within the `cfg_fs!` block. --- mithril-common/src/chain_observer/model.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mithril-common/src/chain_observer/model.rs b/mithril-common/src/chain_observer/model.rs index dc69920b9f..daaa794a64 100644 --- a/mithril-common/src/chain_observer/model.rs +++ b/mithril-common/src/chain_observer/model.rs @@ -1,5 +1,4 @@ use anyhow::anyhow; -use anyhow::Context; use serde::Serialize; use serde_json::Value; use std::collections::HashMap; @@ -10,6 +9,7 @@ use crate::{StdError, StdResult}; cfg_fs! { use serde::Deserialize; + use anyhow::Context; use minicbor::{Decode, Decoder, decode}; use pallas_primitives::{alonzo::PlutusData, ToCanonicalJson}; /// [Datum] represents an inline datum from UTxO.