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

Simplify example code #175

Merged
merged 2 commits into from
Jan 13, 2024
Merged

Conversation

BlackHoleFox
Copy link
Contributor

@BlackHoleFox BlackHoleFox commented Dec 19, 2023

Slightly tidies up the example to use more modern Rust, less type specifications, and then drops clap as a direct dependency. The expected behavior from the example's CLI meant a whole CLI argument library was very over the top. Also its been broken since the update to clap 0.4. Running cargo run --example simple would attempt to rebind the server instead of connecting as a client. The replaced args parsing handles it right again:

Screenshot 2023-12-19 at 12 59 36 PM

Closes #178

@mcginty mcginty merged commit ba65fb4 into mcginty:main Jan 13, 2024
3 checks passed
@mcginty
Copy link
Owner

mcginty commented Jan 13, 2024

Thanks @BlackHoleFox! My bad for the radio silence, I am on another job that has been taking more of my programming attention recently.

@BlackHoleFox BlackHoleFox deleted the example-cleaning-time branch January 13, 2024 20:42
@BlackHoleFox
Copy link
Contributor Author

Been there before, no problem here. Thanks for taking a look :)

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.

Can't run the client mode of example simple
2 participants