Skip to content

Commit eed1e2f

Browse files
committed
Remove unneeded closure syntax in nightly_works
1 parent 4173a21 commit eed1e2f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/wrapper.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ fn nightly_works() -> bool {
7474
let original_hook = panic::take_hook();
7575
panic::set_hook(null_hook);
7676

77-
let works = panic::catch_unwind(|| proc_macro::Span::call_site()).is_ok();
77+
let works = panic::catch_unwind(proc_macro::Span::call_site).is_ok();
7878
WORKS.store(works as usize + 1, Ordering::SeqCst);
7979

8080
let hopefully_null_hook = panic::take_hook();

0 commit comments

Comments
 (0)