From 0c00b7e9bf1b6d01d68a168c57526135ce3a8161 Mon Sep 17 00:00:00 2001 From: peppidesu Date: Sat, 19 Oct 2024 16:02:55 +0200 Subject: [PATCH] missing import + ci fixes --- src/grid.rs | 2 +- src/main.rs | 9 +++------ 2 files changed, 4 insertions(+), 7 deletions(-) diff --git a/src/grid.rs b/src/grid.rs index 9f3ae04..1937a70 100644 --- a/src/grid.rs +++ b/src/grid.rs @@ -1,4 +1,4 @@ -use std::{cell::SyncUnsafeCell}; +use std::cell::SyncUnsafeCell; use image::{GenericImageView, Rgb}; use tokio::sync::{RwLock, RwLockReadGuard}; diff --git a/src/main.rs b/src/main.rs index 84d18a8..5a65ba5 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,8 +1,7 @@ use std::{ - collections::VecDeque, convert::Infallible, fs::{create_dir_all, File}, - io::{self}, + io::{self, Write as _}, path::Path, sync::Arc, time::Duration, @@ -15,11 +14,9 @@ use flurry::{ grid::{self, Flut}, COUNTER, }; -use image::{codecs::jpeg::JpegEncoder, GenericImageView, SubImage}; -use tokio::{ - io::{AsyncReadExt, AsyncWriteExt, BufReader, BufWriter}, +use tokio::{ net::TcpListener, - time::{interval, sleep, timeout, Instant}, + time::interval }; type Never = Infallible;