From e98a61340da55fc91b8cefa96bb89b653ea560a2 Mon Sep 17 00:00:00 2001 From: Javier Parada Date: Thu, 5 Dec 2024 11:44:10 +0100 Subject: [PATCH] opt imports --- apps/cti/src/v1/cves/cve_post_controller.rs | 2 +- .../cves/application/create_one/create_cve_command_handler.rs | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/apps/cti/src/v1/cves/cve_post_controller.rs b/apps/cti/src/v1/cves/cve_post_controller.rs index c34a22e..1c058fd 100644 --- a/apps/cti/src/v1/cves/cve_post_controller.rs +++ b/apps/cti/src/v1/cves/cve_post_controller.rs @@ -1,6 +1,6 @@ use actix_web::{web, HttpRequest, HttpResponse}; use cqrs::domain::command_bus::CommandBus; -use cti::{cves::{application::{create_one::create_cve_command::CreateCveCommand, cve_command_response::CveCommandResponse}, domain::repositories::cve_repository::CveRepository, infrastructure::dtos::cve_json_dto::{parse_to_domain, CveJsonDto}}, shared::domain::errors::DomainError}; +use cti::{cves::{application::{create_one::create_cve_command::CreateCveCommand, cve_command_response::CveCommandResponse}, domain::repositories::cve_repository::CveRepository, infrastructure::dtos::cve_json_dto::CveJsonDto}, shared::domain::errors::DomainError}; use events::domain::event_bus::EventBus; pub async fn controller( diff --git a/libs/cti/src/cves/application/create_one/create_cve_command_handler.rs b/libs/cti/src/cves/application/create_one/create_cve_command_handler.rs index 361ef58..b709ba3 100644 --- a/libs/cti/src/cves/application/create_one/create_cve_command_handler.rs +++ b/libs/cti/src/cves/application/create_one/create_cve_command_handler.rs @@ -1,4 +1,3 @@ -use std::sync::Arc; use async_trait::async_trait; use cqrs::domain::{command::Command, command_bus_response::CommandBusResponse, command_handler::CommandHandler};