Skip to content

Commit

Permalink
:pencilrefine usafe scope in macro (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
Xudong-Huang committed Feb 25, 2024
1 parent 614046f commit eeb30b8
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@ macro_rules! go {
f
}
let f = _go_check($func);
unsafe { $builder.spawn(f) }
let b = $builder;
unsafe { b.spawn(f) }
}};

// for cqueue add spawn
Expand All @@ -42,7 +43,9 @@ macro_rules! go {
f
}
let f = _go_check($func);
unsafe { $cqueue.add($token, f) }
let c = $cqueue;
let t = $token;
unsafe { c.add(t, f) }
}};
}

Expand Down

0 comments on commit eeb30b8

Please sign in to comment.