diff --git a/src/bot/mod.rs b/src/bot/mod.rs index 30a0b4d..be34858 100644 --- a/src/bot/mod.rs +++ b/src/bot/mod.rs @@ -1,12 +1,10 @@ use std::collections::HashMap; use std::error::Error; -use std::fmt::format; -use std::ops::Deref; use std::sync::{Arc}; -use chrono::{DateTime, Duration, NaiveDateTime, Timelike, Utc}; +use chrono::{DateTime, Duration, Timelike, Utc}; use lemmy_db_schema::newtypes::{CommunityId, LanguageId}; use lemmy_db_schema::PostFeatureType; -use tokio::sync::{RwLock, RwLockWriteGuard, RwLockReadGuard}; +use tokio::sync::{RwLock, RwLockWriteGuard}; use crate::{jnovel, lemmy, Message, SharedData}; use crate::config::{Config, PostBody, SeriesConfig}; use crate::jnovel::PostInfo; diff --git a/src/jnovel/mod.rs b/src/jnovel/mod.rs index 23f9e5b..c5dff33 100644 --- a/src/jnovel/mod.rs +++ b/src/jnovel/mod.rs @@ -3,7 +3,6 @@ use std::collections::HashMap; use std::error::Error; use std::ops::Sub; use chrono::{DateTime, Duration, Utc}; -use lemmy_db_schema::source::post::Post; use serde_derive::{Deserialize, Serialize}; use url::Url; use crate::{HTTP_CLIENT}; diff --git a/src/lemmy/mod.rs b/src/lemmy/mod.rs index bb29919..c3dffe3 100644 --- a/src/lemmy/mod.rs +++ b/src/lemmy/mod.rs @@ -2,18 +2,14 @@ use std::collections::HashMap; use std::env; use std::env::VarError; use std::error::Error; -use chrono::NaiveDateTime; -use lemmy_api_common::community::{ListCommunities, ListCommunitiesResponse}; -use lemmy_api_common::lemmy_db_views::structs::PostView; -use lemmy_api_common::lemmy_db_views_actor::structs::CommunityView; +use lemmy_api_common::community::{ListCommunities}; use lemmy_api_common::person::{Login, LoginResponse}; -use lemmy_api_common::post::{CreatePost, FeaturePost, GetPosts, GetPostsResponse}; +use lemmy_api_common::post::{GetPosts}; use lemmy_api_common::sensitive::Sensitive; -use lemmy_db_schema::newtypes::{CommunityId, DbUrl, InstanceId, LanguageId, PersonId, PostId}; +use lemmy_db_schema::newtypes::{CommunityId, InstanceId, LanguageId, PersonId, PostId}; use lemmy_db_schema::{ListingType, PostFeatureType, SubscribedType}; use reqwest::StatusCode; use serde_derive::{Deserialize, Serialize}; -use serde_json::json; use url::Url; use crate::HTTP_CLIENT;