Skip to content

Cleanup for libgraphviz - #46784

Merged
bors merged 1 commit into
rust-lang:masterfrom
bjorn3:patch-1
Dec 22, 2017
Merged

Cleanup for libgraphviz#46784
bors merged 1 commit into
rust-lang:masterfrom
bjorn3:patch-1

Conversation

@bjorn3

Copy link
Copy Markdown
Member

No description provided.

@rust-highfive

Copy link
Copy Markdown
Contributor

r? @pnkfelix

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

Comment threadsrc/libgraphviz/lib.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.

Missing ?

Comment threadsrc/libgraphviz/lib.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.

Missing ?

Comment threadsrc/libgraphviz/lib.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.

Are cursors necessary? Can't you write to vecs directly?

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Didn't know you could write to them without cursor.

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.

nor did i!

@kennytmkennytm added the S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. label Dec 17, 2017
@bjorn3

Copy link
Copy Markdown
MemberAuthor

As it can't fail. (Its on the Vec, not the W)

Comment threadsrc/libgraphviz/lib.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.

This change removes a newline, which breaks some tests

Copy link
Copy Markdown
MemberAuthor

Choose a reason for hiding this comment

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

Oops

@oli-obkoli-obk left a comment

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.

lgtm now. Can you just squash the commits into one?

@bjorn3

Copy link
Copy Markdown
MemberAuthor

Rebased

writeln!(w, "digraph {} {{", g.graph_id().as_slice())?;
for n in g.nodes().iter() {
indent(w)?;
write!(w, " ")?;

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.

(personally I usually prefer a function like indent over having to double-check that the string contents all match up, but since there are only two calls to indent I'm not going to make a fuss)

@pnkfelix

Copy link
Copy Markdown
Contributor

@bors r+ rollup

@bors

bors commented Dec 21, 2017

Copy link
Copy Markdown
Collaborator

📌 Commit 2e2defd has been approved by pnkfelix

@pnkfelixpnkfelix added S-waiting-on-bors Status: Waiting on bors to run and complete tests. Bors will change the label on completion. and removed S-waiting-on-review Status: Awaiting review from the assignee but also interested parties. labels Dec 21, 2017
kennytm added a commit to kennytm/rust that referenced this pull request Dec 21, 2017
@kennytmkennytm mentioned this pull request Dec 21, 2017
bors added a commit that referenced this pull request Dec 21, 2017
Rollup of 14 pull requests
- Successful merges: #46636, #46780, #46784, #46809, #46814, #46820, #46839, #46847, #46858, #46878, #46884, #46890, #46898, #46918
- Failed merges:
@bors
bors merged commit 2e2defd into rust-lang:masterDec 22, 2017
@bjorn3
bjorn3 deleted the patch-1 branch December 22, 2017 07:26
Sign up for freeto join this conversation on GitHub. Already have an account? Sign in to comment

Labels

S-waiting-on-borsStatus: Waiting on bors to run and complete tests. Bors will change the label on completion.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants

@bjorn3@rust-highfive@pnkfelix@bors@oli-obk@kennytm