@@ -442,14 +442,9 @@ pub unsafe extern "C" fn ddog_sidecar_telemetry_addEndpoint(
442442 resource_name : CharSlice ,
443443 request_body_type : * mut ffi:: Vec < CharSlice > ,
444444 response_body_type : * mut ffi:: Vec < CharSlice > ,
445- response_code : i32 ,
446445 authentication : * mut ffi:: Vec < ddtelemetry:: data:: Authentication > ,
447446 metadata : CharSlice ,
448447) -> MaybeError {
449- let mut response_code_vec = vec ! [ ] ;
450- if response_code > -1 {
451- response_code_vec. push ( response_code) ;
452- }
453448 let request_body_type = box_from_raw_opt ( request_body_type) ;
454449 let response_body_type = box_from_raw_opt ( response_body_type) ;
455450 let authentication = box_from_raw_opt ( authentication) ;
@@ -463,7 +458,6 @@ pub unsafe extern "C" fn ddog_sidecar_telemetry_addEndpoint(
463458 resource_name : resource_name. to_utf8_lossy ( ) . into_owned ( ) ,
464459 request_body_type : request_body_type. map ( |v| slice_of_char_slice_to_vec_of_string ( & * * v) ) ,
465460 response_body_type : response_body_type. map ( |v| slice_of_char_slice_to_vec_of_string ( & * * v) ) ,
466- response_code : Some ( response_code_vec) ,
467461 // into_iter() is not implemented correctly for ffi::Vec, so we need to copy the elements
468462 authentication : authentication. map ( |v| v. iter ( ) . map ( |auth| auth. to_owned ( ) ) . collect ( ) ) ,
469463 metadata : metadata. assume_utf8 ( ) . to_string ( ) ,
0 commit comments