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

Drop exponent on suggestion when exponent value is zero #7774

Merged
merged 2 commits into from
Oct 6, 2021

Conversation

dswij
Copy link
Member

@dswij dswij commented Oct 6, 2021

Closes #7745

I'm open to some thoughts on dropping the exponents on suggestions when it's zero. I personally don't see any problem on this.

changelog: [useless_exponent] suggestion drops exponent when exponent value is zero

This commit changes numeric literal formatting to drop exponent when
exponent is 0.
@rust-highfive
Copy link

r? @llogiq

(rust-highfive has picked a reviewer for you, use r? to override)

@rust-highfive rust-highfive added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties label Oct 6, 2021
@llogiq
Copy link
Contributor

llogiq commented Oct 6, 2021

Yeah, I don't see much value in the e0 either.

@bors r+

@bors
Copy link
Collaborator

bors commented Oct 6, 2021

📌 Commit e476d05 has been approved by llogiq

@bors
Copy link
Collaborator

bors commented Oct 6, 2021

⌛ Testing commit e476d05 with merge c6b9158...

@dswij dswij changed the title Useless exponent Drop exponent on suggestion when exponent value is zero Oct 6, 2021
@bors
Copy link
Collaborator

bors commented Oct 6, 2021

☀️ Test successful - checks-action_dev_test, checks-action_remark_test, checks-action_test
Approved by: llogiq
Pushing c6b9158 to master...

@bors bors merged commit c6b9158 into rust-lang:master Oct 6, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S-waiting-on-review Status: Awaiting review from the assignee but also interested parties
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Needless exponent in excessive_precision suggestion
4 participants