File tree Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -376,20 +376,20 @@ fn build_args(
376
376
is_str = t. path . is_ident ( "str" ) ;
377
377
}
378
378
}
379
- }
380
- hack_tokens. append_all ( if is_str {
381
- if is_option {
382
- quote ! { let #param = #param. and_then( |__temp| Some ( unsafe { :: core:: mem:: transmute:: <& str , & ' static str >( __temp) } ) ) ; }
383
- } else {
384
- quote ! { let #param = unsafe { :: core:: mem:: transmute:: <& str , & ' static str >( #param) } ; }
385
- }
386
- } else {
387
- if is_option {
388
- quote ! { let #param = #param. and_then( |__temp| Some ( unsafe { :: ext_php_rs:: zend:: borrow_unchecked( __temp) } ) ) ; }
379
+ hack_tokens. append_all ( if is_str {
380
+ if is_option {
381
+ quote ! { let #param = #param. and_then( |__temp| Some ( unsafe { :: core:: mem:: transmute:: <& str , & ' static str >( __temp) } ) ) ; }
382
+ } else {
383
+ quote ! { let #param = unsafe { :: core:: mem:: transmute:: <& str , & ' static str >( #param) } ; }
384
+ }
389
385
} else {
390
- quote ! { let #param = unsafe { :: ext_php_rs:: zend:: borrow_unchecked( #param) } ; }
391
- }
392
- } ) ;
386
+ if is_option {
387
+ quote ! { let #param = #param. and_then( |__temp| Some ( unsafe { :: ext_php_rs:: zend:: borrow_unchecked( __temp) } ) ) ; }
388
+ } else {
389
+ quote ! { let #param = unsafe { :: ext_php_rs:: zend:: borrow_unchecked( #param) } ; }
390
+ }
391
+ } ) ;
392
+ }
393
393
394
394
let default = defaults. get ( & name) ;
395
395
let mut ty = ty. ty . clone ( ) ;
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ use lazy_static::lazy_static;
15
15
use tokio:: runtime:: Runtime ;
16
16
use std:: os:: fd:: AsRawFd ;
17
17
18
- use super :: { borrow_unchecked, printf } ;
18
+ use super :: { borrow_unchecked} ;
19
19
20
20
lazy_static ! {
21
21
pub static ref RUNTIME : Runtime = Runtime :: new( ) . expect( "Could not allocate runtime" ) ;
You can’t perform that action at this time.
0 commit comments