parent
594af15242
commit
b4faef8176
2 changed files with 3 additions and 1 deletions
|
@ -3,6 +3,8 @@
|
||||||
## [Unreleased]
|
## [Unreleased]
|
||||||
|
|
||||||
- [Fixed] Allow braces in the boolean expression for a toggled class
|
- [Fixed] Allow braces in the boolean expression for a toggled class
|
||||||
|
- [Fixed] Update to rustc 1.21.0-nightly (f25c2283b 2017-08-15)
|
||||||
|
[#99](https://github.com/lfairy/maud/issues/99)
|
||||||
|
|
||||||
## [0.17.1] - 2017-08-11
|
## [0.17.1] - 2017-08-11
|
||||||
|
|
||||||
|
|
|
@ -30,7 +30,7 @@ impl<'a, 'tcx> LateLintPass<'a, 'tcx> for Doctype {
|
||||||
if s.as_str().eq_ignore_ascii_case("<!doctype html>");
|
if s.as_str().eq_ignore_ascii_case("<!doctype html>");
|
||||||
// ... and the callee is `maud::PreEscaped`
|
// ... and the callee is `maud::PreEscaped`
|
||||||
if let ExprPath(ref qpath) = path_expr.node;
|
if let ExprPath(ref qpath) = path_expr.node;
|
||||||
let def_id = cx.tables.qpath_def(qpath, path_expr.id).def_id();
|
let def_id = cx.tables.qpath_def(qpath, path_expr.hir_id).def_id();
|
||||||
if match_def_path(cx, def_id, &["maud", "PreEscaped", "{{constructor}}"]);
|
if match_def_path(cx, def_id, &["maud", "PreEscaped", "{{constructor}}"]);
|
||||||
then {
|
then {
|
||||||
cx.struct_span_lint(MAUD_DOCTYPE, expr.span,
|
cx.struct_span_lint(MAUD_DOCTYPE, expr.span,
|
||||||
|
|
Loading…
Add table
Reference in a new issue