buntine / barcoders

A barcode encoding library for the Rust programming language
Apache License 2.0
164 stars 24 forks source link

Migrate crate to 2018 edition #16

Closed phansch closed 5 months ago

phansch commented 4 years ago

This migrates the crate to the 2018 edition.

With the 2018 edition enabled, this now produces a new deprecation warning:

warning: use of deprecated item 'std::error::Error::description': use the Display impl or to_string()
  --> src/error/mod.rs:22:26
   |
22 |         f.write_str(self.description())
   |                          ^^^^^^^^^^^
   |

Let me know if I should fix that as well.

buntine commented 4 years ago

Oh, sorry, I somehow totally missed this or forgot to action it. I will take a look tonight and merge it in. Thanks!