From 9c71c9f61705ed7aaaaa9502973c72c7cd13a3e6 Mon Sep 17 00:00:00 2001 From: neon_arch Date: Tue, 22 Aug 2023 19:29:13 +0300 Subject: [PATCH] =?UTF-8?q?=F0=9F=A7=B9=20chore:=20make=20rustfmt=20happy?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/server/routes.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/server/routes.rs b/src/server/routes.rs index 93c6fd5..8910f8f 100644 --- a/src/server/routes.rs +++ b/src/server/routes.rs @@ -215,7 +215,8 @@ async fn results( /// Handles the route of robots.txt page of the `websurfx` meta search engine website. #[get("/robots.txt")] pub async fn robots_data(_req: HttpRequest) -> Result> { - let page_content: String = read_to_string(format!("{}/robots.txt", file_path(FileType::Theme)?))?; + let page_content: String = + read_to_string(format!("{}/robots.txt", file_path(FileType::Theme)?))?; Ok(HttpResponse::Ok() .content_type("text/plain; charset=ascii") .body(page_content))