From 5472de54a000af55449173dbf8f2c8f05c612f9a Mon Sep 17 00:00:00 2001 From: Hugo Caillard <911307+hugocaillard@users.noreply.github.com> Date: Thu, 3 Oct 2024 18:30:41 +0200 Subject: [PATCH] refactor: apply cargo fmt --- src/lib.rs | 5 ++++- src/main.rs | 6 +++++- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 1457c70..39f388a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -1506,7 +1506,10 @@ impl StacksDevnetApiK8sManager { ("V2_POX_MIN_AMOUNT_USTX".into(), "90000000260".into()), ("NODE_ENV".into(), "production".into()), ("STACKS_API_LOG_LEVEL".into(), "debug".into()), - ("FAUCET_PRIVATE_KEY".into(), config.devnet_config.faucet_secret_key_hex.clone()), + ( + "FAUCET_PRIVATE_KEY".into(), + config.devnet_config.faucet_secret_key_hex.clone(), + ), ]); self.deploy_configmap( StacksDevnetConfigmap::StacksBlockchainApi, diff --git a/src/main.rs b/src/main.rs index 97f179d..584575b 100644 --- a/src/main.rs +++ b/src/main.rs @@ -31,7 +31,11 @@ async fn main() { let config_path = match env::var("CONFIG_PATH") { Ok(path) => path, Err(_) => { - if cfg!(debug_assertions) { "./Config.toml".into() } else { "/etc/config/Config.toml".into() } + if cfg!(debug_assertions) { + "./Config.toml".into() + } else { + "/etc/config/Config.toml".into() + } } }; let config = ApiConfig::from_path(&config_path);