refactor(project): cleaned up with clippy

This commit is contained in:
Patryk Hegenberg 2024-05-29 20:14:34 +02:00
parent cd43fd6041
commit 4af2255d2f
3 changed files with 2 additions and 4 deletions

View file

@ -36,7 +36,7 @@ pub async fn start_receiver(filepath: String, relay: &str, name: &str) -> Result
if let Err(relay_err) = start_ws_com(filepath, relay, res.relay_room_id.as_str()).await {
debug!("Failed to connect remote: {relay_err}");
}
let _success = http_client::download_success(http_url.as_str(), name)
http_client::download_success(http_url.as_str(), name)
.await
.map_err(|e| anyhow!("Failed to download success: {}", e))?;

View file

@ -22,8 +22,6 @@ use std::{
path::Path,
time::Duration,
};
// use tokio::sync::mpsc;
use tokio::sync::mpsc;
use tokio::{io::AsyncReadExt, task::JoinHandle, time::sleep};
use tokio_tungstenite::tungstenite::{protocol::Message as WebSocketMessage, Error};
use tracing::{debug, error};