Rust Version, Linting & CI Fix

This commit is contained in:
Neshura 2023-09-07 20:33:47 +02:00
parent 6ab4ae7244
commit cf36c8205b
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C
6 changed files with 7 additions and 11 deletions

View file

@ -5,7 +5,7 @@ extern crate dotenv;
use dotenv::dotenv;
use tokio::time::sleep;
use std::{env, error::Error, fs, net::Ipv4Addr, net::Ipv6Addr, thread, time::Duration, sync::{Mutex, Arc, atomic::{AtomicBool, Ordering}}};
use std::{env, fs, net::Ipv4Addr, net::Ipv6Addr, time::Duration, sync::{Arc, atomic::{AtomicBool, Ordering}}};
use chrono::Local;
@ -266,7 +266,7 @@ async fn main() -> Result<()> {
while is_alive.load(Ordering::Relaxed) {
let thread = tokio::spawn(async {
sleep(Duration::from_millis(100));
let _ = sleep(Duration::from_millis(100));
});
let _ = thread.await;