From f8d9527aeb65d4907e6fb48fb717cb6275789797 Mon Sep 17 00:00:00 2001 From: Eliza Weisman Date: Mon, 11 Apr 2022 16:34:37 -0700 Subject: [PATCH] fix(no_std): fix warning in `resume_unwind` Signed-off-by: Eliza Weisman --- src/util/panic.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/panic.rs b/src/util/panic.rs index dafa2f3..0a51a08 100644 --- a/src/util/panic.rs +++ b/src/util/panic.rs @@ -21,7 +21,7 @@ mod inner { Ok(f()) } - pub(crate) fn resume_unwind(payload: ()) -> ! { + pub(crate) fn resume_unwind(_: ()) -> ! { unreachable_unchecked!("code compiled with no_std cannot unwind!") } }