From cd21efd88a2830000c29cb623475c9cb8f5fb0b1 Mon Sep 17 00:00:00 2001 From: Dan Gohman Date: Fri, 22 Feb 2019 15:22:24 -0800 Subject: [PATCH] Tidy up an unnecessary lambda. --- lib/runtime/src/traphandlers.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/runtime/src/traphandlers.rs b/lib/runtime/src/traphandlers.rs index ec3b5a7374..76a4cde7ad 100644 --- a/lib/runtime/src/traphandlers.rs +++ b/lib/runtime/src/traphandlers.rs @@ -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" );