Removed unsafe warning (will work on later)
This commit is contained in:
@@ -394,6 +394,7 @@ impl ToRust for TopLevelKind {
|
|||||||
.collect::<Vec<_>>()
|
.collect::<Vec<_>>()
|
||||||
.join(", ");
|
.join(", ");
|
||||||
|
|
||||||
|
cg.add_indentedln("#[allow(invalid_value)]");
|
||||||
cg.add_indentedln(&format!(
|
cg.add_indentedln(&format!(
|
||||||
"{}fn new{}({}) -> Self {{",
|
"{}fn new{}({}) -> Self {{",
|
||||||
constructor.visibility.get_rust(),
|
constructor.visibility.get_rust(),
|
||||||
|
|||||||
Reference in New Issue
Block a user