Fix the panic message.

This commit is contained in:
Camille GILLOT 2022-07-03 17:49:13 +02:00
parent 30ae64e51f
commit d330dc8c11

View File

@ -51,7 +51,7 @@ impl FixedSizeEncoding for Option<$ty> {
}
match b[0] - 1 {
$(${index()} => Some($($pat)*),)*
_ => panic!("Unexpected ImplPolarity code: {:?}", b[0]),
_ => panic!("Unexpected {} code: {:?}", stringify!($ty), b[0]),
}
}