As part for the work of migrating the CRuby Rust bindings to rb-sys I realized we were using pre-2018 edition import/use syntax. I decided to run cargo fix to bring it up to 2018 -> 2021.
This is what I ran cargo fix --allow-dirty --edition --all-features to upgrade the Rust edition.
I also addressed small things like struct shorthand initialization.
As part for the work of migrating the CRuby Rust bindings to
rb-sys
I realized we were using pre-2018 edition import/use syntax. I decided to runcargo fix
to bring it up to 2018 -> 2021.This is what I ran
cargo fix --allow-dirty --edition --all-features
to upgrade the Rust edition.I also addressed small things like struct shorthand initialization.
Ideally in order to ease review, we should merge https://github.com/danielpclark/rutie/pull/169 first.
I used merged import formatting since I think is more compact/readable but I can revert that if you wish so.