1
Fork 0

Small cleanup

This commit is contained in:
mcarton 2016-02-20 21:20:56 +01:00
parent ba3be83488
commit 1a64a4890c
5 changed files with 8 additions and 8 deletions

View file

@ -105,7 +105,7 @@ impl LateLintPass for RegexPass {
Ok(r) => {
if let Some(repl) = is_trivial_regex(&r) {
span_help_and_lint(cx, TRIVIAL_REGEX, args[0].span,
&"trivial regex",
"trivial regex",
&format!("consider using {}", repl));
}
}
@ -123,7 +123,7 @@ impl LateLintPass for RegexPass {
Ok(r) => {
if let Some(repl) = is_trivial_regex(&r) {
span_help_and_lint(cx, TRIVIAL_REGEX, args[0].span,
&"trivial regex",
"trivial regex",
&format!("consider using {}", repl));
}
}