aboutsummaryrefslogtreecommitdiff
path: root/azalea-client/src
diff options
context:
space:
mode:
Diffstat (limited to 'azalea-client/src')
-rwxr-xr-xazalea-client/src/chat.rs4
1 files changed, 3 insertions, 1 deletions
diff --git a/azalea-client/src/chat.rs b/azalea-client/src/chat.rs
index de0b8a7d..2988ad6a 100755
--- a/azalea-client/src/chat.rs
+++ b/azalea-client/src/chat.rs
@@ -40,7 +40,9 @@ pub enum ChatPacket {
macro_rules! regex {
($re:literal $(,)?) => {{
- std::sync::LazyLock::new(|| regex::Regex::new($re).unwrap())
+ static RE: std::sync::LazyLock<regex::Regex> =
+ std::sync::LazyLock::new(|| regex::Regex::new($re).unwrap());
+ &RE
}};
}