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

Get rid of compiler warnings due to unused code in floyd_warshall.rs #1

Closed
easbar opened this issue Jun 17, 2019 · 3 comments · Fixed by #6
Closed

Get rid of compiler warnings due to unused code in floyd_warshall.rs #1

easbar opened this issue Jun 17, 2019 · 3 comments · Fixed by #6

Comments

@easbar
Copy link
Owner

easbar commented Jun 17, 2019

The code in floyd_warshall.rs is only used in tests at the moment.

@Eh2406
Copy link
Contributor

Eh2406 commented Jun 28, 2019

Then you can add #[cfg(test)] to only compile it when running tests.

@easbar
Copy link
Owner Author

easbar commented Jun 28, 2019

Where exactly do I need to put #[cfg(test)] ? Did you try it ?

@Eh2406
Copy link
Contributor

Eh2406 commented Jun 28, 2019

I will give it a try if it works I'll make a PR.

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 a pull request may close this issue.

2 participants