Skip to content

clippy: fix needless_pass_by_value lint#2205

Open
xtqqczze wants to merge 1 commit intopendulum-project:mainfrom
xtqqczze:clippy/needless_pass_by_value
Open

clippy: fix needless_pass_by_value lint#2205
xtqqczze wants to merge 1 commit intopendulum-project:mainfrom
xtqqczze:clippy/needless_pass_by_value

Conversation

@xtqqczze
Copy link
Copy Markdown
Contributor

@codecov
Copy link
Copy Markdown

codecov bot commented Apr 15, 2026

Codecov Report

❌ Patch coverage is 85.83333% with 17 lines in your changes missing coverage. Please review.
✅ Project coverage is 83.58%. Comparing base (79d5581) to head (ed0682a).

Files with missing lines Patch % Lines
ntpd/src/daemon/mod.rs 0.00% 9 Missing ⚠️
ntpd/src/metrics/exporter.rs 0.00% 3 Missing ⚠️
ntpd/src/daemon/system.rs 0.00% 2 Missing ⚠️
ntpd/src/ctl.rs 80.00% 1 Missing ⚠️
ntpd/src/daemon/spawn/nts_pool.rs 0.00% 1 Missing ⚠️
ntpd/src/force_sync/mod.rs 0.00% 1 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##             main    #2205      +/-   ##
==========================================
- Coverage   83.61%   83.58%   -0.04%     
==========================================
  Files          93       93              
  Lines       21641    21643       +2     
==========================================
- Hits        18095    18090       -5     
- Misses       3546     3553       +7     
Flag Coverage Δ
fuzz-cookie_parsing_sound 0.40% <0.00%> (+<0.01%) ⬆️
fuzz-duration_from_float 0.27% <0.00%> (+<0.01%) ⬆️
fuzz-encrypted_client_parsing 6.43% <14.28%> (-0.81%) ⬇️
fuzz-encrypted_server_parsing 10.28% <14.28%> (+0.55%) ⬆️
fuzz-handle 13.11% <14.28%> (+1.78%) ⬆️
fuzz-ipfilter 2.54% <0.00%> (+<0.01%) ⬆️
fuzz-key_exchange_request_parsing 3.88% <0.00%> (+0.03%) ⬆️
fuzz-key_exchange_response_parsing 3.74% <0.00%> (+0.01%) ⬆️
fuzz-packet_keyset 5.71% <14.28%> (-0.04%) ⬇️
fuzz-packet_parsing_sound 7.18% <14.28%> (+1.92%) ⬆️
fuzz-ptp_message_parsing 62.83% <ø> (+4.01%) ⬆️
fuzz-record_encode_decode 4.51% <0.00%> (+<0.01%) ⬆️
test-aarch64-apple-darwin 82.52% <85.83%> (-0.02%) ⬇️
test-x86_64-unknown-linux-gnu 82.43% <85.83%> (-0.02%) ⬇️
test-x86_64-unknown-linux-musl 82.43% <85.83%> (-0.02%) ⬇️

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

@davidv1992
Copy link
Copy Markdown
Member

Feel free to ignore the ci failure, that is unrelated to your PR.

@xtqqczze

This comment was marked as resolved.

@xtqqczze xtqqczze force-pushed the clippy/needless_pass_by_value branch from 9d6dfa6 to 9bd8e36 Compare April 16, 2026 11:17
Copy link
Copy Markdown
Member

@davidv1992 davidv1992 left a comment

Choose a reason for hiding this comment

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

Thank you, mostly looks good, just a few minor things about references to PathBufs:

Comment thread ntpd/src/daemon/mod.rs Outdated
Comment thread ntpd/src/force_sync/mod.rs Outdated
Comment thread ntpd/src/ctl.rs Outdated
@xtqqczze xtqqczze force-pushed the clippy/needless_pass_by_value branch from 5ab4053 to a2b3041 Compare April 16, 2026 16:50
@xtqqczze xtqqczze force-pushed the clippy/needless_pass_by_value branch from a2b3041 to ed0682a Compare April 16, 2026 17:06
@xtqqczze
Copy link
Copy Markdown
Contributor Author

Clipyy failures depend on #2225

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants