Link to current versions docs instead of master docs

This commit is contained in:
Oliver Schneider 2017-09-01 10:35:58 +02:00
parent ff91c6359a
commit 045139613a
No known key found for this signature in database
GPG key ID: A69F8D225B3AD7D9

View file

@ -566,7 +566,8 @@ impl<'a> DiagnosticWrapper<'a> {
fn docs_link(&mut self, lint: &'static Lint) {
if env::var("CLIPPY_DISABLE_DOCS_LINKS").is_err() {
self.0.help(&format!(
"for further information visit https://rust-lang-nursery.github.io/rust-clippy/master/index.html#{}",
"for further information visit https://rust-lang-nursery.github.io/rust-clippy/{}/index.html#{}",
env!("CARGO_PKG_VERSION"),
lint.name_lower()
));
}