diff --git a/src/services/about.rs b/src/services/about.rs index 28eedc02..a11bdfb2 100644 --- a/src/services/about.rs +++ b/src/services/about.rs @@ -1,5 +1,4 @@ //! Templates for "about" static pages. -use crate::web::api::server::v1::routes::API_VERSION_URL_PREFIX; #[must_use] pub fn index_page() -> String { @@ -8,8 +7,7 @@ pub fn index_page() -> String { #[must_use] pub fn page() -> String { - format!( - r#" + r#"
Hi! This is a running torrust-index.
"# - ) + .to_string() } #[must_use] pub fn license_page() -> String { - format!( - r#" + r#"If you want to read more about all the licenses and how they apply please refer to the contributor agreement.
-"# - ) +"#.to_string() } diff --git a/src/web/api/server/v1/contexts/about/mod.rs b/src/web/api/server/v1/contexts/about/mod.rs index ef4668d1..02423b4c 100644 --- a/src/web/api/server/v1/contexts/about/mod.rs +++ b/src/web/api/server/v1/contexts/about/mod.rs @@ -35,7 +35,7 @@ //!Hi! This is a running torrust-index.
//!