aboutsummaryrefslogtreecommitdiffstats
path: root/components/plugins/lints.rs
diff options
context:
space:
mode:
authorManish Goregaokar <manishsmail@gmail.com>2014-09-21 00:47:13 +0530
committerManish Goregaokar <manishsmail@gmail.com>2014-09-23 17:37:28 +0530
commit5b866e9e4616c63c99ef5c945d3fbaf429b1b460 (patch)
treec6226c89a8ba9171e2d3a37c20b23902c8fc3919 /components/plugins/lints.rs
parent2a4f9fd8a33734811acdb6d69d4f479f91527d6e (diff)
downloadservo-5b866e9e4616c63c99ef5c945d3fbaf429b1b460.tar.gz
servo-5b866e9e4616c63c99ef5c945d3fbaf429b1b460.zip
Fix CEF
Diffstat (limited to 'components/plugins/lints.rs')
-rw-r--r--components/plugins/lints.rs10
1 files changed, 3 insertions, 7 deletions
diff --git a/components/plugins/lints.rs b/components/plugins/lints.rs
index 34e73d2475c..4a1bbb85f09 100644
--- a/components/plugins/lints.rs
+++ b/components/plugins/lints.rs
@@ -1,7 +1,3 @@
-/* This Source Code Form is subject to the terms of the Mozilla Public
- * License, v. 2.0. If a copy of the MPL was not distributed with this
- * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
-
use syntax::{ast, codemap, visit};
use syntax::attr::AttrMetaMethods;
use rustc::lint::{Context, LintPass, LintArray};
@@ -95,9 +91,9 @@ impl LintPass for UnrootedPass {
}
}
- fn check_fn(&mut self, cx: &Context, kind: &visit::FnKind, decl: &ast::FnDecl,
+ fn check_fn(&mut self, cx: &Context, kind: visit::FnKind, decl: &ast::FnDecl,
block: &ast::Block, _span: codemap::Span, _id: ast::NodeId) {
- match *kind {
+ match kind {
visit::FkItemFn(i, _, _, _) |
visit::FkMethod(i, _, _) if i.as_str() == "new" || i.as_str() == "new_inherited" => {
return;
@@ -144,4 +140,4 @@ impl LintPass for UnrootedPass {
_ => {}
}
}
-}
+} \ No newline at end of file