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

Protect against segfault and clean up warnings #317

Merged
merged 2 commits into from
Jan 30, 2021

Conversation

ojhp
Copy link
Collaborator

@ojhp ojhp commented Jan 25, 2021

Fixes #310 - Segfault appears to be in the TCOD library, it can't handle reversing an empty list in the Dijkstra example finding a path from (0, 0) to (0, 0). Added a protective check around the call the the underlying library. The A* implementation works differently enough to be unaffected from what I can see.

Fixes #297 - ... ranges replaced with ..= and unneeded brackets removed. Also updated lazy_static to latest version which resolves a deprecation warning generated from a macro in there.

I'll leave this open for a week or so before merging to give chance for comments, none of this seems urgent until the deprecations become breaking.

@tomassedovic tomassedovic merged commit d4ad074 into master Jan 30, 2021
@tomassedovic
Copy link
Owner

Great stuff, thank you!

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.

Segfault running Dijkstra path finding example Fix deprecation warnings on latest Rust
2 participants