We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e5bd8e3 commit b01ec5eCopy full SHA for b01ec5e
crates/rust/src/bindgen.rs
@@ -727,7 +727,7 @@ impl Bindgen for FunctionBindgen<'_, '_> {
727
self.push_str(&format!(
728
"if ptr.is_null()\n{{\n{alloc}::handle_alloc_error({layout});\n}}\nptr\n}}",
729
));
730
- self.push_str("else {{\n::core::ptr::null_mut()\n}};\n");
+ self.push_str("else {\n::core::ptr::null_mut()\n};\n");
731
self.push_str(&format!("for (i, e) in {vec}.into_iter().enumerate() {{\n",));
732
self.push_str(&format!("let base = {result}.add(i * {size});\n",));
733
self.push_str(&body);
0 commit comments