-
Notifications
You must be signed in to change notification settings - Fork 153
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
Move collect_runs()
to rustworkx-core
#1210
Conversation
@mtreinish this is ready for review now, however CI |
My guess is that the release of rust 1.79 last week is causing new clippy rules to be run and that's causing the failure. Although I thought we should have everything pinned to the MSRV in CI to avoid this kind of situation. |
Yes, I was on 1.77. Updating to 1.79 I see those warnings locally as well. I'll wait for it to be resolved. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Besides the compiler errors in the rust tests this is looking good. Just a few small inline comments.
Pull Request Test Coverage Report for Build 9579580062Warning: This coverage report may be inaccurate.This pull request's base commit is no longer the HEAD commit of its target branch. This means it includes changes from outside the original pull request, including, potentially, unrelated coverage changes.
Details
💛 - Coveralls |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM now, thanks for doing this.
.graph | ||
.neighbors_directed(node, petgraph::Direction::Outgoing) | ||
|
||
let mut result: Vec<Vec<PyObject>> = Vec::with_capacity(core_runs.size_hint().1.unwrap_or(0)); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This will result in some overallocation, but I don't think it's a big deal, it's also only temporary as we convert this to a pylist almost immediately so this is fine.
Pull Request Test Coverage Report for Build 9603800299Details
💛 - Coveralls |
A follow up PR to #1210, adding a missing release note.
This PR moves
collect_runs()
functionality to rustworkx-core intorustworkx-core/src/dag_algo.rs
. This will be used bycollect_runs()
insrc/dag_algo/mod.rs
.Closes #1199
Tasks: