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

fixes for last couple months of CI changes #183

Merged
merged 6 commits into from
Jul 5, 2024

Conversation

apoelstra
Copy link
Member

Clippy, public-api and cargo.

apoelstra added 6 commits July 5, 2024 19:09
cargo now complains about #[cfg] attributes that don't match cargo
features, unless you explicitly whitelist them. This is very useful for
catching typos. Whitelist the ones we use, and set the lint from "warn"
to "deny".
Appears to have been an accidental addition during iteration on rust-bitcoin#117.
Copy link
Member

@clarkmoody clarkmoody left a comment

Choose a reason for hiding this comment

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

ACK ca3f2ef

This should reduce some of the noise in #180

@apoelstra apoelstra merged commit 8529aff into rust-bitcoin:master Jul 5, 2024
13 checks passed
@apoelstra apoelstra deleted the 2024-07--ci branch July 5, 2024 20:24
#[inline]
fn size_hint(&self) -> (usize, Option<usize>) { self.iter.size_hint() }
}

Copy link
Member

Choose a reason for hiding this comment

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

Interesting, that is twice this week that code that I have worked on includes types that are not constructable. Seems this should be caught by the linter.

Copy link
Member Author

Choose a reason for hiding this comment

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

It's a recent addition (only last couple weeks) to the rustc "dead code" lint. It's actually pretty clever because this is a publicly exported type -- there's just no publicly-exported function that returns it.

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.

3 participants