🧹 chore: make rustfmt happy
This commit is contained in:
parent
e8998a4be2
commit
9c71c9f617
1 changed files with 2 additions and 1 deletions
|
@ -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<HttpResponse, Box<dyn std::error::Error>> {
|
||||
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))
|
||||
|
|
Loading…
Add table
Reference in a new issue