Skip to content

run rustfmt on std::path#29200

Merged
bors merged 1 commit into
rust-lang:masterfrom
tshepang:rustfmt-path
Nov 4, 2015
Merged

run rustfmt on std::path#29200
bors merged 1 commit into
rust-lang:masterfrom
tshepang:rustfmt-path

Conversation

@tshepang
Copy link
Copy Markdown
Member

No description provided.

@rust-highfive
Copy link
Copy Markdown
Contributor

r? @aturon

(rust_highfive has picked a reviewer for you, use r? to override)

Comment thread src/libstd/path.rs Outdated
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ughh, rustfmt doesn't do inline if-else expressions well. I'd personally refactor this to use an intermediate value.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I changed that into a block instead... it's more readable, and gets formatted better by rustfmt.

There was a bunch of manual fixes too... rustfmt isn't quite there yet
@aturon
Copy link
Copy Markdown
Contributor

aturon commented Nov 4, 2015

@tshepang Sorry, I've been away on paternity leave for the past couple of weeks. This looks great to me.

@bors: r+ rollup

@bors
Copy link
Copy Markdown
Collaborator

bors commented Nov 4, 2015

📌 Commit 37735b4 has been approved by aturon

steveklabnik added a commit to steveklabnik/rust that referenced this pull request Nov 4, 2015
bors added a commit that referenced this pull request Nov 4, 2015
@bors
Copy link
Copy Markdown
Collaborator

bors commented Nov 4, 2015

⌛ Testing commit 37735b4 with merge 1be3f9f...

@bors bors merged commit 37735b4 into rust-lang:master Nov 4, 2015
@tshepang
Copy link
Copy Markdown
Member Author

tshepang commented Nov 4, 2015

no problem, thanks

@tshepang tshepang deleted the rustfmt-path branch November 4, 2015 14:49
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.

5 participants