Skip to content

Fix clippy issues #98

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

Merged
merged 2 commits into from
Aug 12, 2024
Merged

Fix clippy issues #98

merged 2 commits into from
Aug 12, 2024

Conversation

Frederick888
Copy link
Owner

@Frederick888 Frederick888 commented Aug 12, 2024

Description

Changes

4a54988 style: Suppress dead code warnings in test builds

They only happen in tests. It's too much of an overkill to add not(test)
to fix them.

3ee4b6f style: Allow dead code on CurrentCaller.pid

It's only actually read when 'notification' feature is enabled, but I'll
need a bunch of conditional compilation stuff in tests too if I do a
cfg() here, which is not worth it.

Checklist

  • I have rebased my branch so that it has no conflicts
  • I have added tests where appropriate
  • Commit messages are compliant with Conventional Commits

Is this a breaking change?

No

They only happen in tests. It's too much of an overkill to add not(test)
to fix them.
It's only actually read when 'notification' feature is enabled, but I'll
need a bunch of conditional compilation stuff in tests too if I do a
cfg() here, which is not worth it.
@Frederick888 Frederick888 merged commit 0bacb1d into master Aug 12, 2024
37 checks passed
@Frederick888 Frederick888 deleted the fix-clippy branch August 12, 2024 10:43
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.

1 participant