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

Avoid warning #615

Merged
merged 2 commits into from
Jun 2, 2022
Merged

Avoid warning #615

merged 2 commits into from
Jun 2, 2022

Conversation

phimuemue
Copy link
Member

Fixes two warnings that would clutter output.

  • #[inline] not meaningful before macro call. I pulled it into the macro, but with a TODO asking whether this is sensible. As far as I know, we do not have an established guideline for this, so I thought it's ok to leave it in there.
  • #[must_use] not meaningful on type alias. Pulled to the original type where not present before.

As the warning tells, it has no effect otherwise.
It's unclear whether it's really meaningful, but for now keep in within the macro.
As warned by the compiler, it has no effect.
@phimuemue
Copy link
Member Author

bors +r

@bors
Copy link
Contributor

bors bot commented Jun 2, 2022

Did you mean "r+"?

@phimuemue
Copy link
Member Author

bors r+

@bors
Copy link
Contributor

bors bot commented Jun 2, 2022

Build succeeded:

@bors bors bot merged commit 1f0a8c1 into rust-itertools:master Jun 2, 2022
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.

None yet

1 participant