aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorFuwn <[email protected]>2024-09-08 01:33:18 -0700
committerFuwn <[email protected]>2024-09-08 01:33:22 -0700
commit3f446b3259ff4709be6bcf9cb67e1e4d21938144 (patch)
treec2161ddc0e061b701965c5f191624c04c1aae1f0 /src
parentchore(nix): add direnv (diff)
downloadlocus-3f446b3259ff4709be6bcf9cb67e1e4d21938144.tar.xz
locus-3f446b3259ff4709be6bcf9cb67e1e4d21938144.zip
chore(docker): shrink image
Diffstat (limited to 'src')
-rw-r--r--src/main.rs5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/main.rs b/src/main.rs
index c2dccb0..0153b04 100644
--- a/src/main.rs
+++ b/src/main.rs
@@ -20,6 +20,8 @@ mod xml;
#[macro_use] extern crate log;
+use std::alloc::System;
+
use {
// dotenv::var,
pickledb::PickleDb,
@@ -27,6 +29,9 @@ use {
tokio::time::Instant,
};
+#[global_allocator]
+static A: System = System;
+
const ERROR_HANDLER_RESPONSE: &str =
"The requested resource could not be found at this time. You can try \
refreshing the page, if that doesn't change anything; contact Fuwn! \