From 139b7ec10bc7f08dae9bd57eef8eff73fbb22061 Mon Sep 17 00:00:00 2001 From: Vika Date: Sat, 7 May 2022 20:28:43 +0300 Subject: Split into different crates Templates and utility types are now separate crates to speed up compilation, linting and potential reuse/replacement. Potentially more crates could be split out/modularized, resulting in speedups, smaller binaries (whenever features are excluded) and even more reuse capabilities. --- src/lib.rs | 9 --------- 1 file changed, 9 deletions(-) (limited to 'src/lib.rs') diff --git a/src/lib.rs b/src/lib.rs index 2709022..9d4335a 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -31,15 +31,6 @@ pub mod util { }) } - pub fn template( - template: R - ) -> impl warp::Reply - where - R: markup::Render + std::fmt::Display - { - warp::reply::html(template.to_string()) - } - pub fn parse_accept() -> impl Filter + Copy { warp::header::value("Accept").and_then(|accept: warp::http::HeaderValue| async move { let mut accept: http_types::content::Accept = { -- cgit 1.4.1