diff --git a/src/file.rs b/src/file.rs index 8686ab18..e5680ce8 100644 --- a/src/file.rs +++ b/src/file.rs @@ -4,7 +4,7 @@ use serde::Serialize; use serde_json::{Map, Value}; use std::fs::{self, File, OpenOptions}; use std::io::{self, ErrorKind, Read, Write}; -use std::path::{Path, PathBuf}; +use std::path::PathBuf; fn filepath() -> PathBuf { if let Some(proj_dirs) = ProjectDirs::from("com", "ore", "app") { diff --git a/src/gateway/mod.rs b/src/gateway/mod.rs index 8068e5f9..160ad275 100644 --- a/src/gateway/mod.rs +++ b/src/gateway/mod.rs @@ -63,8 +63,8 @@ pub const API_URL: &str = "https://ore-api-lthm.onrender.com"; pub const RPC_URL: &str = "https://devnet.helius-rpc.com/?api-key=bb9df66a-8cba-404d-b17a-e739fe6a480c"; -#[cfg(feature = "desktop")] -pub const WSS_URL: &str = "wss://ore-websockets.onrender.com/ws"; +// #[cfg(feature = "desktop")] +// pub const WSS_URL: &str = "wss://ore-websockets.onrender.com/ws"; pub struct Gateway { #[cfg(feature = "web")] diff --git a/src/hooks/use_sol_balance.rs b/src/hooks/use_sol_balance.rs index a4edb5d2..c434a899 100644 --- a/src/hooks/use_sol_balance.rs +++ b/src/hooks/use_sol_balance.rs @@ -1,7 +1,5 @@ use dioxus::prelude::*; use dioxus_std::utils::rw::use_rw; -#[cfg(feature = "desktop")] -use solana_client::pubsub_client::PubsubClient; use crate::gateway::AsyncResult;