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;