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

fix: allow some dead code for the nightly compiler #1934

Merged
merged 2 commits into from
Jan 8, 2024
Merged

Conversation

flub
Copy link
Contributor

@flub flub commented Jan 8, 2024

Description

The nightly compiler (rightly I think) identifies the u64 as unread
and suggests changing it with unit instead.

However the nightly compiler wrongly identifies some oneshot senders
as dead code. Just get main working on CI again for now.

Notes & open questions

This is the easy way out, not very nice. We also have a
ProgressReader2 in iroh-bytes that's very similar. Maybe we should
extract these and put them somewhere common.

Change checklist

  • Self-review.

flub added 2 commits January 8, 2024 10:40
The nightly compiler (rightly I think) identifies the u64 as unread
and suggests changing it with unit instead.

This is the easy way out, not very nice.  We also have a
ProgressReader2 in iroh-bytes that's very similar.  Maybe we should
extract these and put them somewhere common.
@flub flub requested a review from rklaehn January 8, 2024 10:07
@flub flub changed the title fix: allow progress updates to be unused fix: allow some dead code for the nightly compiler Jan 8, 2024
@Arqu Arqu merged commit ca20102 into main Jan 8, 2024
21 of 26 checks passed
@Arqu Arqu deleted the flub/progress-unread branch January 8, 2024 10:52
fubuloubu pushed a commit to ApeWorX/iroh that referenced this pull request Feb 21, 2024
## Description

The nightly compiler (rightly I think) identifies the u64 as unread
and suggests changing it with unit instead.

However the nightly compiler wrongly identifies some oneshot senders
as dead code.  Just get main working on CI again for now.

## Notes & open questions

This is the easy way out, not very nice.  We also have a
ProgressReader2 in iroh-bytes that's very similar.  Maybe we should
extract these and put them somewhere common.

## Change checklist

- [x] Self-review.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

2 participants