fix warning

This commit is contained in:
Jacob Lifshay 2024-07-21 20:44:29 -07:00
parent 1809fccb45
commit 8ca0cd56c4
Signed by: programmerjake
SSH key fingerprint: SHA256:B1iRVvUJkvd7upMIiMqn6OyxvD2SgJkAH3ZnUOj6z+c

View file

@ -437,6 +437,7 @@ impl Visitor {
#(#lets)*
#make_expr_fn::<#ty>(|#infallible_var| {
let #retval_var = #check_literal;
#[allow(unreachable_code)]
match #retval_var {
#variant_or_type { .. } => #retval_var,
#[allow(unreachable_patterns)]