-
Notifications
You must be signed in to change notification settings - Fork 8
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
Refactor to reduce signature errors risks #482
Refactor to reduce signature errors risks #482
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #482 +/- ##
==========================================
- Coverage 69.65% 69.64% -0.01%
==========================================
Files 198 199 +1
Lines 26602 26634 +32
==========================================
+ Hits 18529 18549 +20
- Misses 8073 8085 +12
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice cleanup.
ddcommon/src/entity_id/mod.rs
Outdated
/// Set the path to cgroup file to mock it during tests | ||
/// # Safety | ||
/// Must not be called in multi-threaded contexts | ||
pub unsafe fn set_cgroup_file(file: String) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
#[allow(unused_variables)]
😉
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I used _file
clippy doesn't complain and it seems a bit more specific (even though in such a small function it doesn't make any difference)
c7780c6
to
e8d3329
Compare
e8d3329
to
262ffbb
Compare
What does this PR do?
Refactor the fallback for unix specific functions in
entity_id
to reduce risks of signature inconsistency between the unix and the fallback implementation.Motivation
Different signatures between fallback and unix versions fixed by #474
Additional Notes
Only refactor, no functional changes