Skip to content

Commit 5e6954c

Browse files
committed
consistency and fmt
1 parent 692c6bd commit 5e6954c

File tree

1 file changed

+6
-9
lines changed

1 file changed

+6
-9
lines changed

src/builders/function.rs

Lines changed: 6 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,7 @@ use crate::{
55
types::Zval,
66
zend::{ExecuteData, FunctionEntry, ZendType},
77
};
8-
use std::{
9-
ffi::{c_char, CString},
10-
mem, ptr,
11-
};
8+
use std::{ffi::CString, mem, ptr};
129

1310
/// Function representation in Rust.
1411
#[cfg(not(windows))]
@@ -57,11 +54,11 @@ impl<'a> FunctionBuilder<'a> {
5754
}),
5855
arg_info: ptr::null(),
5956
num_args: 0,
60-
flags: 0,
57+
flags: 0, // TBD?
6158
#[cfg(php84)]
62-
frameless_function_infos: ptr::null(),
59+
doc_comment: ptr::null(),
6360
#[cfg(php84)]
64-
doc_comment: "".as_ptr() as *const c_char,
61+
frameless_function_infos: ptr::null(),
6562
},
6663
args: vec![],
6764
n_req: None,
@@ -87,9 +84,9 @@ impl<'a> FunctionBuilder<'a> {
8784
num_args: 0,
8885
flags: MethodFlags::Abstract.bits(),
8986
#[cfg(php84)]
90-
frameless_function_infos: ptr::null(),
87+
doc_comment: ptr::null(),
9188
#[cfg(php84)]
92-
doc_comment: "".as_ptr() as *const c_char,
89+
frameless_function_infos: ptr::null(),
9390
},
9491
args: vec![],
9592
n_req: None,

0 commit comments

Comments
 (0)