Allow irrefutable let patterns in the generated code

This commit is contained in:
Nick Fitzgerald
2021-10-22 14:37:20 -07:00
committed by Chris Fallin
parent e015a49270
commit 0c6956376b

View File

@@ -71,6 +71,7 @@ impl<'a> Codegen<'a> {
"#![allow(unused_imports, unused_variables, non_snake_case)]"
)
.unwrap();
writeln!(code, "#[allow(irrefutable_let_patterns)]").unwrap();
writeln!(code, "\nuse super::*; // Pulls in all external types.").unwrap();
}