Our great sponsors
-
Clippy
A bunch of lints to catch common mistakes and improve your Rust code. Book: https://doc.rust-lang.org/clippy/
-
InfluxDB
Power Real-Time Data Analytics at Scale. Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
Overall pretty readable :) Here's some small nits to make things a bit more idiomatic (I'm using the latest commit as of writing 68360282019fd95c4470eef2f51852010d10683a for these line numbers)
There's probably a couple other things I'm missing, but that should get you started :) I can highly recommend using clippy since you're a beginner, it'll give you a lot of helpful change suggestions to make your code more idiomatic and help introduce you to more Rust-specific stuff you might not know about!
Related posts
- [Media] My first rust app, git smart checkout, fuzzy search that branch, I kinda like this language ❤️🦀
- More than you've ever wanted to know about errors in Rust
- New clippy lint: detecting `&mut` which could be `&` in function arguments
- I want to contribute in a big project
- rustc-plugin: A framework for writing plugins that integrate with the Rust compiler