diff options
| author | Andreas Grois <andi@grois.info> | 2021-04-20 23:50:11 +0200 |
|---|---|---|
| committer | Andreas Grois <andi@grois.info> | 2021-04-20 23:50:11 +0200 |
| commit | ff8a1ba0b616c1c625275f9b75b3ecbebfcec221 (patch) | |
| tree | c4f6ab32a047c1ed5741509df3252e9e2da59769 | |
| parent | a162325484a90d7531b7142f0fc790b1abf30c79 (diff) | |
Enforce system allocator (sanity and such...)
| -rw-r--r-- | swaystatus/src/main.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/swaystatus/src/main.rs b/swaystatus/src/main.rs index 87608a9..664df52 100644 --- a/swaystatus/src/main.rs +++ b/swaystatus/src/main.rs @@ -9,11 +9,13 @@ extern crate gettextrs; use gettextrs::*; use crossbeam_utils::thread; use std::sync::mpsc; -use dirs; #[cfg(test)] pub mod test_plugin; +#[global_allocator] +static GLOBAL : std::alloc::System = std::alloc::System; + fn main() { let text_domain = match dirs::data_dir() { Some (p) => TextDomain::new("swaystatus").prepend("target").push(p), |
