From 6777efd1424894b96de418e23c69fe8df45c2bdf Mon Sep 17 00:00:00 2001 From: rasul Date: Thu, 30 Apr 2020 21:16:42 -0500 Subject: [PATCH] document the global variables --- src/check.rs | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/src/check.rs b/src/check.rs index 96ed274..e0337a6 100644 --- a/src/check.rs +++ b/src/check.rs @@ -5,11 +5,22 @@ use crate::config::Player; // this global stuff is so that we can load up the config and check stuff without // being part of the Game struct thread_local! { + /// Minimum length for name static NAME_MIN: RefCell = RefCell::new(0); + + /// Maximum length for name static NAME_MAX: RefCell = RefCell::new(0); + + /// Characters allowed to be in name static NAME_CHARS: RefCell<&'static str> = RefCell::new(""); + + /// Password minimum length static PASS_MIN: RefCell = RefCell::new(0); + + /// Password maximum length static PASS_MAX: RefCell = RefCell::new(0); + + /// Password allowed characters static PASS_CHARS: RefCell<&'static str> = RefCell::new(""); }