@@ -45,7 +45,7 @@ mod linux_impl {
4545 }
4646
4747 #[ inline( always) ]
48- pub fn start_benchmark ( & self ) -> Result < ( ) , i8 > {
48+ pub fn start_benchmark ( & self ) -> Result < ( ) , u8 > {
4949 let result = unsafe { ffi:: instrument_hooks_start_benchmark ( self . 0 ) } ;
5050 if result == 0 {
5151 Ok ( ( ) )
@@ -55,7 +55,7 @@ mod linux_impl {
5555 }
5656
5757 #[ inline( always) ]
58- pub fn stop_benchmark ( & self ) -> Result < ( ) , i8 > {
58+ pub fn stop_benchmark ( & self ) -> Result < ( ) , u8 > {
5959 let result = unsafe { ffi:: instrument_hooks_stop_benchmark ( self . 0 ) } ;
6060 if result == 0 {
6161 Ok ( ( ) )
@@ -65,9 +65,9 @@ mod linux_impl {
6565 }
6666
6767 #[ inline( always) ]
68- pub fn set_executed_benchmark ( & self , uri : & str ) -> Result < ( ) , i8 > {
68+ pub fn set_executed_benchmark ( & self , uri : & str ) -> Result < ( ) , u8 > {
6969 let pid = std:: process:: id ( ) as i32 ;
70- let c_uri = CString :: new ( uri) . map_err ( |_| - 1i8 ) ?;
70+ let c_uri = CString :: new ( uri) . map_err ( |_| 1u8 ) ?;
7171 let result = unsafe {
7272 ffi:: instrument_hooks_set_executed_benchmark ( self . 0 , pid, c_uri. as_ptr ( ) )
7373 } ;
@@ -79,9 +79,9 @@ mod linux_impl {
7979 }
8080
8181 #[ inline( always) ]
82- pub fn set_integration ( & self , name : & str , version : & str ) -> Result < ( ) , i8 > {
83- let c_name = CString :: new ( name) . map_err ( |_| - 1i8 ) ?;
84- let c_version = CString :: new ( version) . map_err ( |_| - 1i8 ) ?;
82+ pub fn set_integration ( & self , name : & str , version : & str ) -> Result < ( ) , u8 > {
83+ let c_name = CString :: new ( name) . map_err ( |_| 1u8 ) ?;
84+ let c_version = CString :: new ( version) . map_err ( |_| 1u8 ) ?;
8585 let result = unsafe {
8686 ffi:: instrument_hooks_set_integration ( self . 0 , c_name. as_ptr ( ) , c_version. as_ptr ( ) )
8787 } ;
@@ -145,19 +145,19 @@ mod other_impl {
145145 false
146146 }
147147
148- pub fn start_benchmark ( & self ) -> Result < ( ) , i8 > {
148+ pub fn start_benchmark ( & self ) -> Result < ( ) , u8 > {
149149 Ok ( ( ) )
150150 }
151151
152- pub fn stop_benchmark ( & self ) -> Result < ( ) , i8 > {
152+ pub fn stop_benchmark ( & self ) -> Result < ( ) , u8 > {
153153 Ok ( ( ) )
154154 }
155155
156- pub fn set_executed_benchmark ( & self , _uri : & str ) -> Result < ( ) , i8 > {
156+ pub fn set_executed_benchmark ( & self , _uri : & str ) -> Result < ( ) , u8 > {
157157 Ok ( ( ) )
158158 }
159159
160- pub fn set_integration ( & self , _name : & str , _version : & str ) -> Result < ( ) , i8 > {
160+ pub fn set_integration ( & self , _name : & str , _version : & str ) -> Result < ( ) , u8 > {
161161 Ok ( ( ) )
162162 }
163163
0 commit comments