File tree Expand file tree Collapse file tree 4 files changed +5
-1
lines changed Expand file tree Collapse file tree 4 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -376,6 +376,7 @@ fn build_args(
376
376
is_str = t. path . is_ident ( "str" ) ;
377
377
}
378
378
}
379
+ }
379
380
hack_tokens. append_all ( if is_str {
380
381
if is_option {
381
382
quote ! { let #param = #param. and_then( |__temp| Some ( unsafe { :: core:: mem:: transmute:: <& str , & ' static str >( __temp) } ) ) ; }
@@ -389,7 +390,7 @@ fn build_args(
389
390
quote ! { let #param = unsafe { :: ext_php_rs:: zend:: borrow_unchecked( #param) } ; }
390
391
}
391
392
} ) ;
392
- }
393
+
393
394
394
395
let default = defaults. get ( & name) ;
395
396
let mut ty = ty. ty . clone ( ) ;
Original file line number Diff line number Diff line change @@ -123,6 +123,7 @@ impl<'a> Arg<'a> {
123
123
/// # Parameters
124
124
///
125
125
/// * `params` - A list of parameters to call the function with.
126
+ #[ inline( always) ]
126
127
pub fn try_call ( & self , params : Vec < & dyn IntoZvalDyn > ) -> Result < Zval > {
127
128
self . zval . as_ref ( ) . ok_or ( Error :: Callable ) ?. try_call ( params)
128
129
}
Original file line number Diff line number Diff line change @@ -99,6 +99,7 @@ impl<'a> ZendCallable<'a> {
99
99
/// let result = strpos.try_call(vec![&"hello", &"e"]).unwrap();
100
100
/// assert_eq!(result.long(), Some(1));
101
101
/// ```
102
+ #[ inline( always) ]
102
103
pub fn try_call ( & self , params : Vec < & dyn IntoZvalDyn > ) -> Result < Zval > {
103
104
if !self . 0 . is_callable ( ) {
104
105
return Err ( Error :: Callable ) ;
Original file line number Diff line number Diff line change @@ -262,6 +262,7 @@ impl Zval {
262
262
/// # Parameters
263
263
///
264
264
/// * `params` - A list of parameters to call the function with.
265
+ #[ inline( always) ]
265
266
pub fn try_call ( & self , params : Vec < & dyn IntoZvalDyn > ) -> Result < Zval > {
266
267
self . callable ( ) . ok_or ( Error :: Callable ) ?. try_call ( params)
267
268
}
You can’t perform that action at this time.
0 commit comments