about summary refs log tree commit diff
path: root/kittybox-rs/templates/src/templates.rs
diff options
context:
space:
mode:
authorVika <vika@fireburn.ru>2023-06-15 22:44:50 +0300
committerVika <vika@fireburn.ru>2023-06-15 22:44:50 +0300
commit2f5df555ecf70dbaf7f059723813ea099e12879d (patch)
tree57b9e0a951ae21859342cf3f1a456c999a5c750d /kittybox-rs/templates/src/templates.rs
parent9a28da3ac18f60329474e6b48a77f07e57ba88d4 (diff)
Smallish code tweaks
 - cleaner format!()
 - syndication links
 - broke up a long line
Diffstat (limited to 'kittybox-rs/templates/src/templates.rs')
-rw-r--r--kittybox-rs/templates/src/templates.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/kittybox-rs/templates/src/templates.rs b/kittybox-rs/templates/src/templates.rs
index 10c84a7..9826bfc 100644
--- a/kittybox-rs/templates/src/templates.rs
+++ b/kittybox-rs/templates/src/templates.rs
@@ -93,7 +93,7 @@ markup::define! {
         @Feed { feed }
     }
     ErrorPage(code: StatusCode, msg: Option<String>) {
-        h1 { @format!("HTTP {}", code) }
+        h1 { @format!("HTTP {code}") }
         @match *code {
             StatusCode::UNAUTHORIZED => {
                 p { "Looks like you need to authenticate yourself before seeing this page. Try logging in with IndieAuth using the Login button above!" }