Skip to content

graphviz: support style attributes #27044

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

Merged
merged 1 commit into from
Jul 20, 2015
Merged

Conversation

nrc
Copy link
Member

@nrc nrc commented Jul 14, 2015

}

impl LabelledGraph {
fn new(name: &'static str,
node_labels: Trivial,
edges: Vec<Edge>) -> LabelledGraph {
edges: Vec<Edge>,
node_styles: Vec<Style>) -> LabelledGraph {
Copy link
Member

Choose a reason for hiding this comment

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

could you make the node_styles an Option<Vec<Style>> instead? In your tests, it seemed annoying to construct the vecs of no-style so frequently.

@pnkfelix
Copy link
Member

@nrc looks fine. I trust you to make your own call regarding my suggestion about the API change. r=me after that is or is not addressed. :)

@nrc nrc force-pushed the graphviz-style branch from a1418d5 to 75f8f96 Compare July 20, 2015 03:45
@nrc
Copy link
Member Author

nrc commented Jul 20, 2015

So I ended up making the ctor take an Option rather than changing the field. I think that gives us the best of both worlds.

@nrc
Copy link
Member Author

nrc commented Jul 20, 2015

@bors r=@pnkfelix

@bors
Copy link
Collaborator

bors commented Jul 20, 2015

📌 Commit 75f8f96 has been approved by @pnkfelix

@pnkfelix
Copy link
Member

So I ended up making the ctor take an Option rather than changing the field. I think that gives us the best of both worlds.

oh great, changing the ctor was actually what I was intending. :)

@bors
Copy link
Collaborator

bors commented Jul 20, 2015

⌛ Testing commit 75f8f96 with merge 6c88aed...

bors added a commit that referenced this pull request Jul 20, 2015
@bors bors merged commit 75f8f96 into rust-lang:master Jul 20, 2015
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.

3 participants