Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

style: fix lints from Rust 1.79 release #486

Merged
merged 1 commit into from
Jun 13, 2024
Merged

Conversation

morrisonlevi
Copy link
Contributor

@morrisonlevi morrisonlevi commented Jun 13, 2024

What does this PR do?

Fixes lints from Rust 1.79 release:

  • clippy::duplicated_attributes
  • clippy::legacy_numeric_constants
  • dead_code now triggers on some repr(C) FFI structs because fields are never read in Rust.

Motivation

A new stable release was made, so CI starts failing.

Additional Notes

Nope.

How to test the change?

Everything should be the same.

@github-actions github-actions bot added profiling Relates to the profiling* modules. mini-agent labels Jun 13, 2024
@morrisonlevi morrisonlevi changed the title style: fix clippy lints from Rust 1.79 release style: fix lints from Rust 1.79 release Jun 13, 2024
Copy link
Contributor

@danielsn danielsn left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

One small question, but LGTM

profiling-ffi/src/exporter.rs Show resolved Hide resolved
// Safety: the value is a u64, but pprof only has signed values, so we
// transmute it; the backend does the same.
unsafe { std::intrinsics::transmute(id) }
unsafe { std::intrinsics::transmute::<i64, u64>(*num) }
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💯

@morrisonlevi morrisonlevi marked this pull request as ready for review June 13, 2024 16:34
@morrisonlevi morrisonlevi requested review from a team as code owners June 13, 2024 16:34
@codecov-commenter
Copy link

codecov-commenter commented Jun 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 69.67%. Comparing base (718e036) to head (7587701).

Additional details and impacted files
@@            Coverage Diff             @@
##             main     #486      +/-   ##
==========================================
+ Coverage   69.64%   69.67%   +0.03%     
==========================================
  Files         199      199              
  Lines       26634    26606      -28     
==========================================
- Hits        18549    18539      -10     
+ Misses       8085     8067      -18     
Components Coverage Δ
crashtracker 17.46% <ø> (+0.06%) ⬆️
datadog-alloc 98.76% <ø> (-0.01%) ⬇️
data-pipeline 51.30% <ø> (ø)
data-pipeline-ffi 0.00% <ø> (ø)
ddcommon 85.97% <ø> (ø)
ddcommon-ffi 74.15% <ø> (ø)
ddtelemetry 56.37% <ø> (+0.25%) ⬆️
ipc 84.66% <ø> (+0.05%) ⬆️
profiling 79.13% <100.00%> (-0.02%) ⬇️
profiling-ffi 59.53% <ø> (ø)
serverless 0.00% <ø> (ø)
sidecar 36.26% <ø> (-0.02%) ⬇️
sidecar-ffi 0.00% <ø> (ø)
spawn-worker 54.98% <ø> (ø)
trace-mini-agent 69.36% <ø> (ø)
trace-normalization 97.79% <100.00%> (ø)
trace-obfuscation 95.73% <ø> (-0.01%) ⬇️
trace-protobuf 24.52% <ø> (ø)
trace-utils 90.79% <ø> (-0.01%) ⬇️

@morrisonlevi morrisonlevi merged commit 6fcf188 into main Jun 13, 2024
26 of 27 checks passed
@morrisonlevi morrisonlevi deleted the levi/clippy-v1.79 branch June 13, 2024 17:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mini-agent profiling Relates to the profiling* modules.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants