From cf82a4535be7ef8e3b79263277d381f3314cd6e3 Mon Sep 17 00:00:00 2001 From: Neshura Date: Sun, 30 Jul 2023 20:34:05 +0200 Subject: [PATCH] Remove unused imports --- src/config/mod.rs | 2 +- src/main.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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;