diff --git a/crates/rsjudge-runner/src/user_macro.rs b/crates/rsjudge-runner/src/user_macro.rs index be3cfd5..059f1a9 100644 --- a/crates/rsjudge-runner/src/user_macro.rs +++ b/crates/rsjudge-runner/src/user_macro.rs @@ -6,7 +6,7 @@ macro_rules! users { /// /// # Errors /// Returns an error if the user is not found. - pub fn $id() -> Result<&'static User> { + $vis fn $id() -> Result<&'static User> { static INNER: OnceLock> = OnceLock::new(); INNER .get_or_init(|| get_user_by_name($name))