diff --git a/crates/rooch-faucet/src/discord.rs b/crates/rooch-faucet/src/discord.rs index 53eba8ffc2..1d65b6106b 100644 --- a/crates/rooch-faucet/src/discord.rs +++ b/crates/rooch-faucet/src/discord.rs @@ -23,7 +23,7 @@ pub struct DiscordConfig { impl App { async fn handle_faucet_request(&self, options: &[CommandDataOption]) -> String { let value = options - .get(0) + .first() .expect("Expected address option") .value .clone(); diff --git a/crates/rooch-faucet/src/metrics.rs b/crates/rooch-faucet/src/metrics.rs index 92b6196b9c..94ae1752f7 100644 --- a/crates/rooch-faucet/src/metrics.rs +++ b/crates/rooch-faucet/src/metrics.rs @@ -3,7 +3,7 @@ use prometheus::{ register_histogram_with_registry, register_int_counter_with_registry, Histogram, IntCounter, - IntGauge, Registry, + Registry, }; /// Prometheus metrics which can be displayed in Grafana, queried and alerted on