From 5deb19c7a72e08d40dc380bb72ee13833360e448 Mon Sep 17 00:00:00 2001 From: Javier Parada Date: Mon, 16 Dec 2024 15:11:14 +0100 Subject: [PATCH] opt imports --- .../src/breaches/application/update_one/breach_updater.rs | 6 +++++- libs/cti/src/breaches/application/update_one/mod.rs | 2 +- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/libs/cti/src/breaches/application/update_one/breach_updater.rs b/libs/cti/src/breaches/application/update_one/breach_updater.rs index a376d61..1995bc6 100644 --- a/libs/cti/src/breaches/application/update_one/breach_updater.rs +++ b/libs/cti/src/breaches/application/update_one/breach_updater.rs @@ -49,7 +49,11 @@ impl BreachUpdater { cve_date_updated: CveUpdatedDate, ) -> Result<(), DomainError> { tracing::debug!("Searching Breach update for {}.", id); - let old_breach = match self.repository.find_one(&cve_id, &vendor, &product, &product_version).await { + let old_breach = match self + .repository + .find_one(&cve_id, &vendor, &product, &product_version) + .await + { Ok(breach) => breach, Err(err) => { tracing::info!("Error finding Breach with id: {}.", id); diff --git a/libs/cti/src/breaches/application/update_one/mod.rs b/libs/cti/src/breaches/application/update_one/mod.rs index 849102f..127610f 100644 --- a/libs/cti/src/breaches/application/update_one/mod.rs +++ b/libs/cti/src/breaches/application/update_one/mod.rs @@ -1,2 +1,2 @@ +pub mod breach_updater; pub mod update_breach_command; -pub mod breach_updater; \ No newline at end of file