Skip to content

Commit

Permalink
Fix def_is_as_opt panic message (#1659)
Browse files Browse the repository at this point in the history
  • Loading branch information
thibault-martinez authored Nov 21, 2023
1 parent 805f5df commit 71380a6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdk/src/types/block/macro.rs
Original file line number Diff line number Diff line change
Expand Up @@ -343,7 +343,7 @@ macro_rules! def_is_as_opt {
if let Self::$name(v) = self {
v
} else {
panic!("{} called on a non-{} {}", stringify!([<as_ $name:snake>]), stringify!([<$name>]), stringify!($type:snake));
panic!("{} called on a non-{} {}", stringify!([<as_ $name:snake>]), stringify!([<$name>]), stringify!([<$type:snake>]));
}
}

Expand Down

0 comments on commit 71380a6

Please sign in to comment.