Tidy up an unnecessary lambda.

This commit is contained in:
Dan Gohman
2019-02-22 15:22:24 -08:00
parent e5f7da2e22
commit cd21efd88a

View File

@@ -53,7 +53,7 @@ struct ScopeGuard {
impl ScopeGuard {
fn new() -> Self {
assert_eq!(
TRAP_PC.with(|data| data.get()),
TRAP_PC.with(Cell::get),
ptr::null(),
"unfinished trap detected"
);