@@ -12,22 +12,22 @@ use std::path::PathBuf;
12
12
13
13
use anyhow:: Context ;
14
14
use axum:: {
15
- routing:: { get, post} ,
16
15
Router ,
16
+ routing:: { get, post} ,
17
17
} ;
18
18
use clap:: { Parser , Subcommand } ;
19
19
use client:: initialize_faucet_client;
20
20
use handlers:: { get_background, get_favicon, get_index_css, get_index_html, get_index_js} ;
21
21
use http:: HeaderValue ;
22
- use miden_lib:: { account:: faucets:: create_basic_fungible_faucet, AuthScheme } ;
22
+ use miden_lib:: { AuthScheme , account:: faucets:: create_basic_fungible_faucet} ;
23
23
use miden_node_utils:: {
24
24
config:: load_config, crypto:: get_rpo_random_coin, logging:: OpenTelemetry , version:: LongVersion ,
25
25
} ;
26
26
use miden_objects:: {
27
+ Felt ,
27
28
account:: { AccountFile , AccountStorageMode , AuthSecretKey } ,
28
29
asset:: TokenSymbol ,
29
30
crypto:: dsa:: rpo_falcon512:: SecretKey ,
30
- Felt ,
31
31
} ;
32
32
use rand:: { Rng , SeedableRng } ;
33
33
use rand_chacha:: ChaCha20Rng ;
@@ -38,7 +38,7 @@ use tower_http::{cors::CorsLayer, set_header::SetResponseHeaderLayer, trace::Tra
38
38
use tracing:: info;
39
39
40
40
use crate :: {
41
- config:: { FaucetConfig , DEFAULT_FAUCET_ACCOUNT_PATH } ,
41
+ config:: { DEFAULT_FAUCET_ACCOUNT_PATH , FaucetConfig } ,
42
42
handlers:: { get_metadata, get_tokens} ,
43
43
} ;
44
44
@@ -170,7 +170,7 @@ async fn run_faucet_command(cli: Cli) -> anyhow::Result<()> {
170
170
let secret = SecretKey :: with_rng ( & mut get_rpo_random_coin ( & mut rng) ) ;
171
171
172
172
let ( account, account_seed) = create_basic_fungible_faucet (
173
- rng. gen ( ) ,
173
+ rng. r# gen( ) ,
174
174
( & root_block_header) . try_into ( ) . context ( "failed to create anchor block" ) ?,
175
175
TokenSymbol :: try_from ( token_symbol. as_str ( ) )
176
176
. context ( "failed to parse token symbol" ) ?,
@@ -249,10 +249,10 @@ mod test {
249
249
} ;
250
250
251
251
use fantoccini:: ClientBuilder ;
252
- use serde_json:: { json , Map } ;
252
+ use serde_json:: { Map , json } ;
253
253
use url:: Url ;
254
254
255
- use crate :: { config:: FaucetConfig , run_faucet_command, stub_rpc_api:: serve_stub, Cli } ;
255
+ use crate :: { Cli , config:: FaucetConfig , run_faucet_command, stub_rpc_api:: serve_stub} ;
256
256
257
257
/// This test starts a stub node, a faucet connected to the stub node, and a chromedriver
258
258
/// to test the faucet website. It then loads the website and checks that all the requests
0 commit comments