Skip to content

Commit d3dd4df

Browse files
committed
chore: fix rustc warnings
1 parent 9509058 commit d3dd4df

3 files changed

Lines changed: 2 additions & 10 deletions

File tree

api/src/lib.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@ pub mod price_providers;
1111
mod rpc_api;
1212

1313
use std::net::IpAddr;
14-
use std::net::Ipv4Addr;
1514
use std::net::SocketAddr;
1615

1716
use dioxus::prelude::*;
@@ -260,7 +259,7 @@ pub async fn fiat_prices() -> Result<PriceMap, ApiError> {
260259
#[get("/api/neptune_core_rpc_socket_addr")]
261260
pub async fn neptune_core_rpc_socket_addr() -> Result<SocketAddr, ApiError> {
262261
Ok(SocketAddr::new(
263-
std::net::IpAddr::V4(Ipv4Addr::LOCALHOST),
262+
std::net::IpAddr::V4(std::net::Ipv4Addr::LOCALHOST),
264263
neptune_rpc::neptune_core_rpc_port(),
265264
))
266265
}

ui/src/screens/peers.rs

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,7 @@ impl PartialEq for ClearStandingModalContentProps {
145145
}
146146

147147
// Component containing the modal's internal logic and buttons
148+
#[component]
148149
fn ClearStandingModalContent(props: ClearStandingModalContentProps) -> Element {
149150
let peer_ip = props.peer_ip;
150151
let mut show_modal = props.show_modal;
@@ -305,11 +306,6 @@ fn EstablishedCell(time: SystemTime) -> Element {
305306

306307
let human_duration = humantime::format_duration(elapsed_time_secs);
307308

308-
let _seconds_ago = SystemTime::now()
309-
.duration_since(time)
310-
.unwrap_or_default()
311-
.as_secs();
312-
313309
rsx! {
314310
td {
315311
title: "{human_duration}",

ui/src/screens/utxos.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,11 @@ use std::rc::Rc;
77
use dioxus::prelude::*;
88
use neptune_types::block_height::BlockHeight;
99
use neptune_types::block_selector::BlockSelector;
10-
use neptune_types::native_currency_amount::NativeCurrencyAmount;
11-
use neptune_types::timestamp::Timestamp;
1210
use neptune_types::ui_utxo::UiUtxo;
1311
use neptune_types::ui_utxo::UtxoStatusEvent;
1412

1513
use crate::components::action_link::ActionLink;
1614
use crate::components::amount::Amount;
17-
use crate::components::amount::AmountType;
1815
use crate::components::empty_state::EmptyState;
1916
use crate::components::pico::Card;
2017
use crate::hooks::use_rpc_checker::use_rpc_checker;

0 commit comments

Comments
 (0)