avitex / rust-dangerous

Rust library for safely and explicitly parsing untrusted data
MIT License
51 stars 4 forks source link

Fix examples to pass `#![deny(rust_2018_idioms)]` #34

Closed Byron closed 3 years ago

Byron commented 3 years ago

This would make the examples consistent with the requirements for code within the crate itself.

Please feel free to close if examples should rather remain a little more readable/less overwhelming by leaving out anonymous lifetime annotations.

avitex commented 3 years ago

Thanks for this @Byron! Doc examples should be updated too on second thought, but I'm happy to do that :)