From 71380a648d463f337b72d563a5d17d11781712d4 Mon Sep 17 00:00:00 2001 From: Thibault Martinez Date: Tue, 21 Nov 2023 14:14:28 +0100 Subject: [PATCH] Fix def_is_as_opt panic message (#1659) --- sdk/src/types/block/macro.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/src/types/block/macro.rs b/sdk/src/types/block/macro.rs index 74b74a6ec8..9ddf21391e 100644 --- a/sdk/src/types/block/macro.rs +++ b/sdk/src/types/block/macro.rs @@ -343,7 +343,7 @@ macro_rules! def_is_as_opt { if let Self::$name(v) = self { v } else { - panic!("{} called on a non-{} {}", stringify!([]), stringify!([<$name>]), stringify!($type:snake)); + panic!("{} called on a non-{} {}", stringify!([]), stringify!([<$name>]), stringify!([<$type:snake>])); } }