From ebb9e9ee2b2db7d67e9a6ab9c2fdc77c023a4c22 Mon Sep 17 00:00:00 2001 From: xffxff <1247714429@qq.com> Date: Thu, 15 Jun 2023 06:48:37 +0800 Subject: [PATCH] make format happy --- src/engines/engine_models.rs | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/src/engines/engine_models.rs b/src/engines/engine_models.rs index 9ffc77f..7a58688 100644 --- a/src/engines/engine_models.rs +++ b/src/engines/engine_models.rs @@ -28,9 +28,14 @@ impl fmt::Display for EngineError { write!(f, "The upstream search engine returned an empty result set") } EngineError::RequestError => { - write!(f, "Error occurred while requesting data from upstream search engine") + write!( + f, + "Error occurred while requesting data from upstream search engine" + ) + } + EngineError::UnexpectedError => { + write!(f, "An unexpected error occurred while processing the data") } - EngineError::UnexpectedError => write!(f, "An unexpected error occurred while processing the data"), } } }