Skip to content

Conversation

@sendittothenewts
Copy link

As of Rust nightly 2025-10-08, every use of the throw! macros now emits this warn-by-default lint.

The warning is seen by downstream users of culpa, but not when linting culpa itself, unless you pass the --all-targets flag to cargo clippy to lint the tests.

rust-lang/rust-clippy#15852 (comment) suggests that this new behaviour is by design.

This simply removes the redundant brackets introduced by a5b67d1.

As of Rust nightly 2025-10-08, every use of the `throw!` macros now
emits this warn-by-default lint.

The warning is seen by downstream users of culpa, but not when linting
culpa itself, unless you pass the `--all-targets` flag to `cargo clippy`
to lint the tests.

rust-lang/rust-clippy#15852 (comment)
suggests that this new behaviour is by design.

This simply removes the redundant brackets introduced by
a5b67d1.
@sendittothenewts
Copy link
Author

The relevant change in clippy's behaviour has now landed in Rust 1.92.0-beta.1, so this is becoming important.

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