Skip to content

Commit

Permalink
silence warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
HardhatChad committed Mar 22, 2024
1 parent 5f63b5c commit 0e2feb3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/file.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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") {
Expand Down
4 changes: 2 additions & 2 deletions src/gateway/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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")]
Expand Down
2 changes: 0 additions & 2 deletions src/hooks/use_sol_balance.rs
Original file line number Diff line number Diff line change
@@ -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;

Expand Down

0 comments on commit 0e2feb3

Please sign in to comment.