danielpclark / rutie

“The Tie Between Ruby and Rust.”
MIT License
939 stars 62 forks source link

Rust 2021 edition #170

Closed goyox86 closed 1 year ago

goyox86 commented 1 year ago

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.

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.