Skip to content

Commit

Permalink
fix(rsjudge-utils): ✏️ use $vis in users! macro
Browse files Browse the repository at this point in the history
  • Loading branch information
Jisu-Woniu committed Apr 4, 2024
1 parent 27c6d80 commit 3792131
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/rsjudge-runner/src/user_macro.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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<Option<User>> = OnceLock::new();
INNER
.get_or_init(|| get_user_by_name($name))
Expand Down

0 comments on commit 3792131

Please sign in to comment.