Skip to content

Commit

Permalink
refactor: remove unused ConfigError enum
Browse files Browse the repository at this point in the history
  • Loading branch information
hopeyen committed Nov 4, 2023
1 parent 444f50a commit bd2cd68
Showing 1 changed file with 1 addition and 15 deletions.
16 changes: 1 addition & 15 deletions service/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ use alloy_primitives::Address;
use serde::{Deserialize, Serialize};
use toolshed::thegraph::DeploymentId;

use crate::{query_processor::QueryError, util::init_tracing};
use crate::util::init_tracing;

#[derive(Clone, Debug, Parser, Serialize, Deserialize, Default)]
#[clap(
Expand Down Expand Up @@ -312,20 +312,6 @@ impl Cli {
}
}

#[derive(Debug, thiserror::Error)]
pub enum ConfigError {
#[error("Validate the input: {0}")]
ValidateInput(String),
#[error("Generate JSON representation of the config file: {0}")]
GenerateJson(serde_json::Error),
#[error("QueryError: {0}")]
QueryError(QueryError),
#[error("Toml file error: {0}")]
ReadStr(std::io::Error),
#[error("Unknown error: {0}")]
Other(anyhow::Error),
}

#[derive(
Debug, Copy, Clone, PartialEq, Eq, PartialOrd, Ord, ValueEnum, Serialize, Deserialize, Default,
)]
Expand Down

0 comments on commit bd2cd68

Please sign in to comment.