File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/hyperlight_component_macro/src Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -65,7 +65,7 @@ use hyperlight_component_util::*;
65
65
/// Hyperlight.
66
66
#[ proc_macro]
67
67
pub fn host_bindgen ( input : proc_macro:: TokenStream ) -> proc_macro:: TokenStream {
68
- env_logger:: init ( ) ;
68
+ let _ = env_logger:: try_init ( ) ;
69
69
let path: Option < syn:: LitStr > = syn:: parse_macro_input!( input as Option <syn:: LitStr >) ;
70
70
let path = path
71
71
. map ( |x| x. value ( ) . into ( ) )
@@ -88,7 +88,7 @@ pub fn host_bindgen(input: proc_macro::TokenStream) -> proc_macro::TokenStream {
88
88
/// into the Hyperlight host).
89
89
#[ proc_macro]
90
90
pub fn guest_bindgen ( input : proc_macro:: TokenStream ) -> proc_macro:: TokenStream {
91
- env_logger:: init ( ) ;
91
+ let _ = env_logger:: try_init ( ) ;
92
92
let path: Option < syn:: LitStr > = syn:: parse_macro_input!( input as Option <syn:: LitStr >) ;
93
93
let path = path
94
94
. map ( |x| x. value ( ) . into ( ) )
You can’t perform that action at this time.
0 commit comments