Skip to content

Commit b01ec5e

Browse files
authored
crates/rust: remove unnecessary braces (#1023)
1 parent e5bd8e3 commit b01ec5e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

crates/rust/src/bindgen.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -727,7 +727,7 @@ impl Bindgen for FunctionBindgen<'_, '_> {
727727
self.push_str(&format!(
728728
"if ptr.is_null()\n{{\n{alloc}::handle_alloc_error({layout});\n}}\nptr\n}}",
729729
));
730-
self.push_str("else {{\n::core::ptr::null_mut()\n}};\n");
730+
self.push_str("else {\n::core::ptr::null_mut()\n};\n");
731731
self.push_str(&format!("for (i, e) in {vec}.into_iter().enumerate() {{\n",));
732732
self.push_str(&format!("let base = {result}.add(i * {size});\n",));
733733
self.push_str(&body);

0 commit comments

Comments
 (0)