Tidy up an unnecessary lambda.
This commit is contained in:
@@ -53,7 +53,7 @@ struct ScopeGuard {
|
|||||||
impl ScopeGuard {
|
impl ScopeGuard {
|
||||||
fn new() -> Self {
|
fn new() -> Self {
|
||||||
assert_eq!(
|
assert_eq!(
|
||||||
TRAP_PC.with(|data| data.get()),
|
TRAP_PC.with(Cell::get),
|
||||||
ptr::null(),
|
ptr::null(),
|
||||||
"unfinished trap detected"
|
"unfinished trap detected"
|
||||||
);
|
);
|
||||||
|
|||||||
Reference in New Issue
Block a user