Skip to content

Commit

Permalink
refactor: usage of anyhow::context in cfg_fs block
Browse files Browse the repository at this point in the history
- remove the `use anyhow::context;` from the start of the file.
- add `use anyhow::context;` within the `cfg_fs!` block.
  • Loading branch information
falcucci committed Jan 23, 2024
1 parent 2e3968f commit d7d85bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mithril-common/src/chain_observer/model.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
use anyhow::anyhow;
use anyhow::Context;
use serde::Serialize;
use serde_json::Value;
use std::collections::HashMap;
Expand All @@ -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.
Expand Down

0 comments on commit d7d85bd

Please sign in to comment.