Allow irrefutable let patterns in the generated code
This commit is contained in:
committed by
Chris Fallin
parent
e015a49270
commit
0c6956376b
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user