-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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 by Bors] - Fix some nightly clippy lints #2522
Conversation
I think all the |
|
so... I think we should stop considering unit to be a special case of tuples, have the macros start at 1, and only impl the relevant trait for unit |
I agree with this.
I've used this for testing and debugging before, so I'd like to keep it.
I would also like to keep this.
Yeet this one. |
@TheRawMeatball mentioned that unit are actually tuples. |
they are, i still think it makes sense to split out these impls though as the reason for having them is different than the impls for other tuples |
I'd disagree - having the tuple implementing ones also impl for the unit type is rather elegant imo, and I think we should keep them. IMO, to fix the lints, we should just add |
I agree with @TheRawMeatball: a separate manual impl for unit is cumbersome / redundant / error prone. We should just suppress the lint for relevant impl macros (if there is no way to phrase the code to suppress the lint implicitly). An example of an implicit suppression: fn foo(_bar: T) {
// bar isn't used and _ suppresses the unused lint
} |
I'm cool with this edit: im cool with this now that direct spawn() calls are a thing.
This creates problems for both filterless queries and fetchless filters (because they both rely on () having a Fetch impl ... filters are a special case of Fetch). This should stay as-is.
strong disagree. users should be able to create inputless systems (for things like printing messages) |
b17f4aa
to
cc2eeec
Compare
Sorry I added a new thought in the edit of my previous message, which probably should have been a new message so yall don't miss it. |
e3ece27
to
2246fa0
Compare
imo |
bors r+ |
on nightly these two clippy lints fail: - [needless_borrow](https://rust-lang.github.io/rust-clippy/master/#needless_borrow) - [unused_unit](https://rust-lang.github.io/rust-clippy/master/#unused_unit)
on nightly these two clippy lints fail: - [needless_borrow](https://rust-lang.github.io/rust-clippy/master/#needless_borrow) - [unused_unit](https://rust-lang.github.io/rust-clippy/master/#unused_unit)
on nightly these two clippy lints fail: