From 69c126d860f46ac406a513e02bbdc78d4248c137 Mon Sep 17 00:00:00 2001 From: Natty Date: Tue, 12 Nov 2024 22:28:55 +0100 Subject: [PATCH] Code cleanup --- ext_model/src/lib.rs | 4 ++-- ext_model/src/note_model/mod.rs | 2 +- src/model/processing/note.rs | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/ext_model/src/lib.rs b/ext_model/src/lib.rs index ae99df1..ebde1b7 100644 --- a/ext_model/src/lib.rs +++ b/ext_model/src/lib.rs @@ -1,10 +1,10 @@ use std::future::Future; use chrono::Utc; -use futures_util::{SinkExt, StreamExt}; +use futures_util::StreamExt; use redis::IntoConnectionInfo; pub use sea_orm; -use sea_orm::{ActiveValue::Set, ConnectionTrait}; +use sea_orm::ActiveValue::Set; use sea_orm::{ ColumnTrait, ConnectOptions, DatabaseConnection, DbErr, EntityTrait, QueryFilter, TransactionTrait, diff --git a/ext_model/src/note_model/mod.rs b/ext_model/src/note_model/mod.rs index c3dcd9e..5fa6a2c 100644 --- a/ext_model/src/note_model/mod.rs +++ b/ext_model/src/note_model/mod.rs @@ -11,7 +11,7 @@ use data::{sub_interaction_reaction, sub_interaction_renote, NoteData}; use ext_model_migration::SelectStatement; use magnetar_sdk::types::SpanFilter; use sea_orm::sea_query::{Asterisk, Expr, IntoIden, Query, SelectExpr, SimpleExpr}; -use sea_orm::{ColumnTrait, Condition, EntityTrait, Iden, JoinType, QueryFilter, QueryOrder, QuerySelect, QueryTrait, Select, StatementBuilder}; +use sea_orm::{ColumnTrait, Condition, EntityTrait, Iden, JoinType, QueryFilter, QueryOrder, QuerySelect, QueryTrait, Select}; use std::sync::Arc; const PINS: &str = "pins."; diff --git a/src/model/processing/note.rs b/src/model/processing/note.rs index cfed656..627b5f5 100644 --- a/src/model/processing/note.rs +++ b/src/model/processing/note.rs @@ -7,7 +7,7 @@ use crate::model::{PackType, PackingContext}; use compact_str::CompactString; use either::Either; use futures_util::future::try_join_all; -use futures_util::{FutureExt, StreamExt, TryStreamExt}; +use futures_util::{StreamExt, TryStreamExt}; use magnetar_model::ck::sea_orm_active_enums::NoteVisibilityEnum; use magnetar_model::model_ext::AliasColumnExt; use magnetar_model::note_model::data::{