Closed dkaste closed 3 years ago
In Rust 2018 it is generally preferred to write use statements to import macros. Due to the implementation details of the macros in rouille (using crate-local macros within macros), it is currently impossible to import them that way.
use
rouille
There are two ways to fix this:
local_inner_macros
$crate::
I'm unsure which option would be more suitable for rouille, but I am willing to implement either of these changes.
Edit: Just realized that the minimum Rust version for this project is already above 1.30.
Resolved by merging #223
In Rust 2018 it is generally preferred to write
use
statements to import macros. Due to the implementation details of the macros inrouille
(using crate-local macros within macros), it is currently impossible to import them that way.There are two ways to fix this:
To stay compatible with Rust versions below 1.30:local_inner_macros
$crate::
I'm unsure which option would be more suitable for
rouille
, but I am willing to implement either of these changes.Edit: Just realized that the minimum Rust version for this project is already above 1.30.