chore: cargo fmt

This commit is contained in:
oopsbagel
2025-06-12 00:43:00 -07:00
parent cba898daf6
commit 79b2628d2f
4 changed files with 5 additions and 4 deletions

View File

@@ -4,8 +4,8 @@ use env_logger::Env;
mod orbic;
mod tplink;
mod wingtech;
mod util;
mod wingtech;
pub static CONFIG_TOML: &str = include_str!("../../dist/config.toml.example");
pub static RAYHUNTER_DAEMON_INIT: &str = include_str!("../../dist/scripts/rayhunter_daemon");

View File

@@ -9,8 +9,8 @@ use nusb::{Device, Interface};
use sha2::{Digest, Sha256};
use tokio::time::sleep;
use crate::{CONFIG_TOML, RAYHUNTER_DAEMON_INIT};
use crate::util::echo;
use crate::{CONFIG_TOML, RAYHUNTER_DAEMON_INIT};
pub const ORBIC_NOT_FOUND: &str = r#"No Orbic device found.
Make sure your device is plugged in and turned on.

View File

@@ -2,7 +2,7 @@ use std::io::Write;
use std::net::SocketAddr;
use std::time::Duration;
use anyhow::{bail, Result};
use anyhow::{Result, bail};
use tokio::io::{AsyncReadExt, AsyncWriteExt};
use tokio::net::TcpStream;
use tokio::time::{sleep, timeout};

View File

@@ -140,7 +140,8 @@ async fn wingtech_run_install(admin_ip: String, admin_password: String) -> Resul
format!("http://{admin_ip}:8080/index.html"),
Duration::from_secs(3),
max_failures,
).await?;
)
.await?;
println!("ok");
println!("rayhunter is running at http://{admin_ip}:8080");