mirror of https://github.com/rwf2/Rocket.git
Update codegen for latest nightly.
This commit is contained in:
parent
ec92046d3a
commit
7808ad1649
|
@ -8,7 +8,7 @@ use ansi_term::Color::{Red, Yellow, Blue, White};
|
||||||
use version_check::{is_nightly, is_min_version, is_min_date};
|
use version_check::{is_nightly, is_min_version, is_min_date};
|
||||||
|
|
||||||
// Specifies the minimum nightly version needed to compile Rocket's codegen.
|
// Specifies the minimum nightly version needed to compile Rocket's codegen.
|
||||||
const MIN_DATE: &'static str = "2017-02-26";
|
const MIN_DATE: &'static str = "2017-03-19";
|
||||||
const MIN_VERSION: &'static str = "1.17.0-nightly";
|
const MIN_VERSION: &'static str = "1.17.0-nightly";
|
||||||
|
|
||||||
// Convenience macro for writing to stderr.
|
// Convenience macro for writing to stderr.
|
||||||
|
|
|
@ -229,7 +229,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for RocketLint {
|
||||||
let attr_value = kind.attrs().iter().filter_map(|attr| {
|
let attr_value = kind.attrs().iter().filter_map(|attr| {
|
||||||
match attr.check_name(ROUTE_ATTR) {
|
match attr.check_name(ROUTE_ATTR) {
|
||||||
false => None,
|
false => None,
|
||||||
true => attr.value.meta_item_list().and_then(|list| list[0].name())
|
true => attr.meta_item_list().and_then(|list| list[0].name())
|
||||||
}
|
}
|
||||||
}).next();
|
}).next();
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue