Skip to content

Commit

Permalink
Tidy up an unnecessary lambda.
Browse files Browse the repository at this point in the history
  • Loading branch information
sunfishcode committed Mar 1, 2019
1 parent e5f7da2 commit cd21efd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/runtime/src/traphandlers.rs
Expand Up @@ -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"
);
Expand Down

0 comments on commit cd21efd

Please sign in to comment.