diff --git a/src/config/mod.rs b/src/config/mod.rs index 9460de7..7e15744 100644 --- a/src/config/mod.rs +++ b/src/config/mod.rs @@ -1,6 +1,6 @@ use std::{fs::{self, OpenOptions}, path::Path, io::Write, thread::sleep, time}; -use lemmy_api_common::{sensitive::Sensitive, post::CreatePost, community::{self, ListCommunities, ListCommunitiesResponse}}; +use lemmy_api_common::{sensitive::Sensitive, post::CreatePost, community::{ListCommunities, ListCommunitiesResponse}}; use lemmy_db_schema::{newtypes::{LanguageId, CommunityId}, ListingType}; use serde_derive::{Deserialize, Serialize}; use url::Url; diff --git a/src/main.rs b/src/main.rs index 1ccafaa..6b6e8db 100644 --- a/src/main.rs +++ b/src/main.rs @@ -1,4 +1,4 @@ -use chrono::{Utc, DateTime, NaiveTime, FixedOffset, TimeZone, NaiveDate, NaiveDateTime}; +use chrono::{Utc, DateTime, NaiveTime}; use config::{Config, PrevPost, Secrets, CommunitiesVector}; use lemmy_api_common::{ person::{Login, LoginResponse}, @@ -10,7 +10,7 @@ use lemmy_db_schema::{ }; use once_cell::sync::Lazy; use reqwest::{blocking::Client, StatusCode}; -use std::{thread::{sleep, self}, time::{self, Duration}, io, vec, str::FromStr}; +use std::{thread::sleep, time, io}; mod config;