Skip to content

Commit f23e272

Browse files
committed
style: cargo fmt
1 parent 124c95a commit f23e272

File tree

3 files changed

+12
-12
lines changed

3 files changed

+12
-12
lines changed

config/src/config.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ impl Config {
7777

7878
if let Some(path) = filename {
7979
let mut config_content = std::fs::read_to_string(path)
80-
.map_err(|e| format!("Failed to read config file: {}", e))?;
80+
.map_err(|e| format!("Failed to read config file: {}", e))?;
8181
config_content = Self::substitute_env_vars(config_content)?;
8282
figment_config = figment_config.merge(Toml::string(&config_content));
8383
}

service/src/service.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,8 +129,8 @@ pub async fn run() -> anyhow::Result<()> {
129129
// Load the json-rpc service configuration, which is a combination of the
130130
// general configuration options for any indexer service and specific
131131
// options added for JSON-RPC
132-
let config =
133-
MainConfig::parse(indexer_config::ConfigPrefix::Service, cli.config.as_ref()).map_err(|e| {
132+
let config = MainConfig::parse(indexer_config::ConfigPrefix::Service, cli.config.as_ref())
133+
.map_err(|e| {
134134
error!(
135135
"Invalid configuration file `{}`: {}, if a value is missing you can also use \
136136
--config to fill the rest of the values",

tap-agent/src/config.rs

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@
44
use clap::Parser;
55
use indexer_config::{Config as IndexerConfig, ConfigPrefix};
66
use reqwest::Url;
7-
use tracing::error;
87
use std::path::PathBuf;
98
use std::{collections::HashMap, str::FromStr};
9+
use tracing::error;
1010

1111
use anyhow::Result;
1212
use thegraph_core::{Address, DeploymentId};
@@ -183,15 +183,15 @@ impl Config {
183183
pub fn from_cli() -> Result<Self> {
184184
let cli = Cli::parse();
185185
let indexer_config =
186-
IndexerConfig::parse(ConfigPrefix::Tap, cli.config.as_ref()).map_err(|e| {
187-
error!(
188-
"Invalid configuration file `{}`: {}, if a value is missing you can also use \
186+
IndexerConfig::parse(ConfigPrefix::Tap, cli.config.as_ref()).map_err(|e| {
187+
error!(
188+
"Invalid configuration file `{}`: {}, if a value is missing you can also use \
189189
--config to fill the rest of the values",
190-
cli.config.unwrap_or_default().display(),
191-
e
192-
);
193-
anyhow::anyhow!(e)
194-
})?;
190+
cli.config.unwrap_or_default().display(),
191+
e
192+
);
193+
anyhow::anyhow!(e)
194+
})?;
195195
let config: Config = indexer_config.into();
196196

197197
// Enables tracing under RUST_LOG variable

0 commit comments

Comments
 (0)