georust / geotiff

Reading GeoTIFFs in Rust, nothing else!
MIT License
69 stars 21 forks source link

Fix compilation errors on Rust 2021 edition #9

Closed weiji14 closed 3 months ago

weiji14 commented 3 months ago

Most of the original code in this repo (up to commit 7dd9068b7aa9e21b7c50f737a765d9d6d089a79a) was written around 2017 and 2018, and appears to be compiled under Rust edition 2015.

The changes here adds an explicit edition = "2021" line to the Cargo.toml file, and fixes a couple of compilation errors due to:

A few 'unused import' warnings have also been fixed, but I haven't fixed all of them yet to keep the diff in this PR small for easier review.