Skip to content
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

chore: minor optimisation #841

Merged
merged 2 commits into from
Nov 2, 2023

Conversation

shramee
Copy link
Contributor

@shramee shramee commented Oct 30, 2023

Here's an overview of changes as a diff...

fn find_testable_targets(...) {
-   Take metadata and of the package id.
+   Take package metadata
-   Loop through packages in metadata
-   Filter packages with ID matching package id.
-   Flat map and clone targets of the matching package(s?)
+   Get targets of the package
    Filter the test kind
-   Return vec of TargetMetadata
+   Return vec of &TargetMetadata
}

@shramee shramee requested a review from mkaput as a code owner October 30, 2023 17:26
@mkaput mkaput requested review from maciektr and removed request for mkaput October 30, 2023 17:49
@maciektr
Copy link
Contributor

maciektr commented Nov 2, 2023

Hi @shramee !

Good catch! Would you mind fixing the clippy issues first?

@shramee
Copy link
Contributor Author

shramee commented Nov 2, 2023

Done 🫡

@maciektr
Copy link
Contributor

maciektr commented Nov 2, 2023

Thank you very much! ❤️ ❤️ ❤️

@maciektr maciektr added this pull request to the merge queue Nov 2, 2023
Merged via the queue into software-mansion:main with commit ff98a78 Nov 2, 2023
11 checks passed
@shramee shramee deleted the optimise-test-targets branch November 2, 2023 12:36
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.

2 participants