Skip to content

Commit

Permalink
remove unused import
Browse files Browse the repository at this point in the history
  • Loading branch information
robatipoor committed Feb 20, 2024
1 parent 663f23c commit 1028a91
Show file tree
Hide file tree
Showing 7 changed files with 10 additions and 21 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/test-coverage.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ on:
branches: ["main"]

jobs:
test:
name: coverage
test_coverage:
name: test coverage
runs-on: ubuntu-latest
services:
postgres:
Expand Down
12 changes: 6 additions & 6 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,11 @@ sea-orm-migration = { version = "0.12.14", features = [
"runtime-tokio-rustls",
"sqlx-postgres",
] }
anyhow = "1.0.79"
argon2 = "0.5.2"
anyhow = "1.0.80"
argon2 = "0.5.3"
async-trait = "0.1.77"
base64 = "0.21.7"
chrono = { version = "0.4.31", default-features = false, features = [
chrono = { version = "0.4.34", default-features = false, features = [
"clock",
"serde",
] }
Expand All @@ -46,15 +46,15 @@ lettre = { version = "0.11.4", features = ["tokio1-native-tls", "builder"] }
log = "0.4.20"
log-derive = "0.4.1"
once_cell = "1.19.0"
openssl = "0.10.63"
openssl = "0.10.64"
rand = "0.8.5"
rand_core = { version = "0.6.4", features = ["std"] }
redis = { version = "0.24.0", features = ["tokio-comp"] }
reqwest = { version = "0.11.24", features = ["json", "multipart", "stream"] }
scraper = "0.18.1"
sentry = "0.32.2"
serde = { version = "1.0.196", features = ["derive"] }
serde_json = "1.0.113"
serde = { version = "1.0.197", features = ["derive"] }
serde_json = "1.0.114"
sha2 = "0.10.8"
strum = { version = "0.26.1", features = ["derive"] }
tera = "1.19.1"
Expand Down
2 changes: 0 additions & 2 deletions src/configure/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,8 +86,6 @@ pub enum Profile {

#[cfg(test)]
mod tests {
use std::convert::TryFrom;

use self::env::get_env_source;

pub use super::*;
Expand Down
1 change: 0 additions & 1 deletion src/entity/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ use sea_orm::entity::prelude::*;
use serde::{Deserialize, Serialize};
use strum::Display;
use utoipa::ToSchema;
use uuid::Uuid;

use crate::error::ResourceType;

Expand Down
1 change: 0 additions & 1 deletion src/entity/user.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ use chrono::{DateTime, Utc};
use fake::faker::internet::en::{FreeEmail, Password, Username};
use fake::Dummy;
use sea_orm::entity::prelude::*;
use uuid::Uuid;

use crate::error::ResourceType;

Expand Down
10 changes: 2 additions & 8 deletions src/repo/message.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,16 +125,10 @@ pub async fn update_status(
#[cfg(test)]
mod tests {
use super::*;
use chrono::{Duration, Utc};
use sea_orm::{ActiveModelTrait, EntityTrait, Set};
use chrono::Duration;
use test_context::test_context;
use uuid::Uuid;

use crate::entity::{
self,
message::{MessageKind, MessageStatus},
TransactionTestContext,
};
use crate::entity::TransactionTestContext;

#[test_context(TransactionTestContext)]
#[tokio::test]
Expand Down
1 change: 0 additions & 1 deletion tests/api/helper/api.rs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ use rustfulapi::configure::server::ServerConfig;
use rustfulapi::constant::HTTP;
use rustfulapi::dto::request::*;
use rustfulapi::dto::response::*;
use rustfulapi::dto::ServiceStatusResponse;
use rustfulapi::util::claim::UserClaims;

pub struct Api {
Expand Down

0 comments on commit 1028a91

Please sign in to comment.