diff options
author | bors-servo <metajack+bors@gmail.com> | 2015-08-18 08:15:51 -0600 |
---|---|---|
committer | bors-servo <metajack+bors@gmail.com> | 2015-08-18 08:15:51 -0600 |
commit | 50e1c967e4299c1515575f73d407f5f6b977d818 (patch) | |
tree | b1bea9950959b3061ebe413f3ab534a378256a47 /components/script/dom/servohtmlparser.rs | |
parent | 014608f60c45574e6a347f39a96aa33b8eab02e1 (diff) | |
parent | 19241c95f7b2aa0c781de54b5fba0913b5614b4d (diff) | |
download | servo-50e1c967e4299c1515575f73d407f5f6b977d818.tar.gz servo-50e1c967e4299c1515575f73d407f5f6b977d818.zip |
Auto merge of #7224 - Manishearth:clippy, r=Ms2ger
Integrate clippy into Servo; cleanup some of script
The integration is off by default for now. You can try it out with `./mach build --features "script/plugins/clippy"`.
We're using a branch of clippy with some of the lints changed to Allow, either because they don't apply to us, or because they're noisy and dwarf other warnings (but still should be fixed)
After going through the rest of Servo's warnings I'll figure out which lints we should be keeping.
There's a cargo bug with optional deps that makes it hard for this to work with Cargo.lock -- so this PR contains no changes to lockfiles (and running the build with clippy on may dirty the lockfile, though it gets fixed later)
<!-- Reviewable:start -->
[<img src="https://reviewable.io/review_button.png" height=40 alt="Review on Reviewable"/>](https://reviewable.io/reviews/servo/servo/7224)
<!-- Reviewable:end -->
Diffstat (limited to 'components/script/dom/servohtmlparser.rs')
-rw-r--r-- | components/script/dom/servohtmlparser.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/dom/servohtmlparser.rs b/components/script/dom/servohtmlparser.rs index e979e3f6610..b9ccd50632f 100644 --- a/components/script/dom/servohtmlparser.rs +++ b/components/script/dom/servohtmlparser.rs @@ -268,7 +268,7 @@ impl ServoHTMLParser { } #[inline] - pub fn tokenizer<'a>(&'a self) -> &'a DOMRefCell<Tokenizer> { + pub fn tokenizer(&self) -> &DOMRefCell<Tokenizer> { &self.tokenizer } } |