diff options
Diffstat (limited to 'src/layout.rs')
-rw-r--r-- | src/layout.rs | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/layout.rs b/src/layout.rs index 3906b6f..e0ce469 100644 --- a/src/layout.rs +++ b/src/layout.rs @@ -34,7 +34,7 @@ markup::define! { hr; footer { p { - "metamuffin's website; " + "metamuffin's website; version " @include_str!("../.git/refs/heads/main")[0..10] "; " "sources available on " a[href="https://codeberg.org/metamuffin/website"] { "codeberg" } } } @@ -52,9 +52,6 @@ pub struct LayoutPage<T> { impl<'r, Main: Render> Responder<'r, 'static> for LayoutPage<Main> { fn respond_to(self, _req: &'r Request<'_>) -> response::Result<'static> { - // TODO blocking the event loop here. it seems like there is no other way to - // TODO offload this, since the guard references `req` which has a lifetime. - // TODO therefore we just block. that is fine since the database is somewhat fast. let mut out = String::new(); Layout { main: self.content, |