Skip to content

Commit adae056

Browse files
committed
use double-underscored variables in once! macro expansion
1 parent eddd7d2 commit adae056

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/threadpool.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,8 @@ static SPAWNING: AtomicBool = AtomicBool::new(false);
3030

3131
macro_rules! once {
3232
($args:block) => {
33-
static E: AtomicBool = AtomicBool::new(false);
34-
if !E.compare_and_swap(false, true, Relaxed) {
33+
static __E: AtomicBool = AtomicBool::new(false);
34+
if !__E.compare_and_swap(false, true, Relaxed) {
3535
// only execute this once
3636
$args;
3737
}

0 commit comments

Comments
 (0)