Skip to content

Commit

Permalink
refactor: apply cargo fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
DefiCake committed Mar 5, 2024
1 parent fef9069 commit 46bfb21
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 4 deletions.
5 changes: 4 additions & 1 deletion src/config.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
use crate::constants::{
CAPTCHA_KEY, CAPTCHA_SECRET, DEFAULT_DISPENSE_INTERVAL, DEFAULT_FAUCET_DISPENSE_AMOUNT, DEFAULT_NODE_URL, DEFAULT_PORT, DISPENSE_AMOUNT, DISPENSE_INTERVAL, FAUCET_ASSET_ID, FUEL_NODE_URL, HUMAN_LOGGING, LOG_FILTER, MIN_GAS_PRICE, POW_DIFFICULTY, PUBLIC_FUEL_NODE_URL, SERVICE_PORT, TIMEOUT_SECONDS, WALLET_SECRET_KEY
CAPTCHA_KEY, CAPTCHA_SECRET, DEFAULT_DISPENSE_INTERVAL, DEFAULT_FAUCET_DISPENSE_AMOUNT,
DEFAULT_NODE_URL, DEFAULT_PORT, DISPENSE_AMOUNT, DISPENSE_INTERVAL, FAUCET_ASSET_ID,
FUEL_NODE_URL, HUMAN_LOGGING, LOG_FILTER, MIN_GAS_PRICE, POW_DIFFICULTY, PUBLIC_FUEL_NODE_URL,
SERVICE_PORT, TIMEOUT_SECONDS, WALLET_SECRET_KEY,
};
use fuels_core::types::AssetId;
use secrecy::Secret;
Expand Down
6 changes: 5 additions & 1 deletion src/routes.rs
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
use crate::{
models::*, recaptcha, session::{Salt, SessionMap}, CoinOutput, SharedConfig, SharedDispenseTracker, SharedFaucetState, SharedNetworkConfig, SharedSessions, SharedWallet
models::*,
recaptcha,
session::{Salt, SessionMap},
CoinOutput, SharedConfig, SharedDispenseTracker, SharedFaucetState, SharedNetworkConfig,
SharedSessions, SharedWallet,
};
use axum::{
extract::Query,
Expand Down
4 changes: 2 additions & 2 deletions tests/dispense.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ use fuel_core::service::{Config as NodeConfig, FuelService};
use fuel_core_client::client::pagination::{PageDirection, PaginationRequest};
use fuel_faucet::config::Config;

use fuel_faucet::{start_server, Clock, THE_BIGGEST_AMOUNT};
use fuel_faucet::models::{DispenseInfoResponse, CreateSessionResponse};
use fuel_faucet::models::{CreateSessionResponse, DispenseInfoResponse};
use fuel_faucet::session::Salt;
use fuel_faucet::{start_server, Clock, THE_BIGGEST_AMOUNT};

use fuel_tx::{ConsensusParameters, FeeParameters};
use fuel_types::{Address, AssetId};
Expand Down

0 comments on commit 46bfb21

Please sign in to comment.