Switch to Rust 2018 edition
Gtk-rs now requires Rust 1.31, so we switched to requiring Rust 1.31 in commit 4db23d5f.
Rust 1.31 includes the 2018 edition, so we may as well start using it:
-
The sources have a few comments that include the string do catch
- this indicates places where we could usetry {}
instead. -
All the parser.try()
calls to rust-cssparser are syntax errors now, sincetry
is a reserved keyword. How did cssparser change this?