Skip to content

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

dswij added 2 commits October 6, 2021 15:02
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
Contributor

bors commented Oct 6, 2021

📌 Commit e476d05 has been approved by llogiq

@bors
Copy link
Contributor

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
Contributor

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