Skip to content

Commit

Permalink
address clippy 1.85 errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ekump committed Feb 20, 2025
1 parent 60efb11 commit 89c8f48
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions crashtracker-ffi/src/collector/spans.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ pub unsafe extern "C" fn ddog_crasht_clear_trace_ids() -> VoidResult {
/// No safety concerns.
pub unsafe extern "C" fn ddog_crasht_insert_trace_id(id_high: u64, id_low: u64) -> Result<usize> {
wrap_with_ffi_result!({
let id: u128 = (id_high as u128) << 64 | (id_low as u128);
let id: u128 = ((id_high as u128) << 64) | (id_low as u128);
datadog_crashtracker::insert_trace(id)
})
}
Expand Down Expand Up @@ -86,7 +86,7 @@ pub unsafe extern "C" fn ddog_crasht_insert_trace_id(id_high: u64, id_low: u64)
/// No safety concerns.
pub unsafe extern "C" fn ddog_crasht_insert_span_id(id_high: u64, id_low: u64) -> Result<usize> {
wrap_with_ffi_result!({
let id: u128 = (id_high as u128) << 64 | (id_low as u128);
let id: u128 = ((id_high as u128) << 64) | (id_low as u128);
datadog_crashtracker::insert_span(id)
})
}
Expand Down Expand Up @@ -120,7 +120,7 @@ pub unsafe extern "C" fn ddog_crasht_remove_span_id(
idx: usize,
) -> VoidResult {
wrap_with_void_ffi_result!({
let id: u128 = (id_high as u128) << 64 | (id_low as u128);
let id: u128 = ((id_high as u128) << 64) | (id_low as u128);
datadog_crashtracker::remove_span(id, idx)?
})
}
Expand Down Expand Up @@ -154,7 +154,7 @@ pub unsafe extern "C" fn ddog_crasht_remove_trace_id(
idx: usize,
) -> VoidResult {
wrap_with_void_ffi_result!({
let id: u128 = (id_high as u128) << 64 | (id_low as u128);
let id: u128 = ((id_high as u128) << 64) | (id_low as u128);
datadog_crashtracker::remove_trace(id, idx)?
})
}

0 comments on commit 89c8f48

Please sign in to comment.