Skip to content
This repository has been archived by the owner on Jun 27, 2022. It is now read-only.

Improve examples #18

Merged
merged 5 commits into from
Oct 29, 2015
Merged

Improve examples #18

merged 5 commits into from
Oct 29, 2015

Conversation

meqif
Copy link
Owner

@meqif meqif commented Oct 24, 2015

Improve code examples in README and module documentation.

The improvements require result_expect (rust-lang/rust#27277), which is available on Rust 1.4 onwards. Merge only when 1.4 is released as stable.

Using `unwrap` is bad practice in most cases. Code examples should not
promote that practice, as they may induce the user into believing it's
acceptable.
@meqif
Copy link
Owner Author

meqif commented Oct 29, 2015

Rust 1.4 is finally here, yay! 🎉

meqif added a commit that referenced this pull request Oct 29, 2015
@meqif meqif merged commit 4dfcc32 into master Oct 29, 2015
@dirvine
Copy link

dirvine commented Oct 30, 2015

Just a heads up as well. MIO is now windows compatible and works on stable as well :-) All very nice. It may help resource usage and code complexity?

canndrew pushed a commit to canndrew/rust-utp that referenced this pull request Mar 15, 2016
Use VecDeque for buffers instead of Vec.
@meqif meqif deleted the improve_examples branch May 29, 2021 10:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants