mirror of
https://github.com/rust-lang/rust-clippy
synced 2024-11-23 13:13:34 +00:00
Merge pull request #3133 from matthiaskrgr/link
remove "clippy::" lint prefix from lint name in doc url.
This commit is contained in:
commit
ca753c4af1
1 changed files with 2 additions and 2 deletions
|
@ -499,7 +499,7 @@ impl<'a> DiagnosticWrapper<'a> {
|
||||||
self.0.help(&format!(
|
self.0.help(&format!(
|
||||||
"for further information visit https://rust-lang-nursery.github.io/rust-clippy/v{}/index.html#{}",
|
"for further information visit https://rust-lang-nursery.github.io/rust-clippy/v{}/index.html#{}",
|
||||||
env!("CARGO_PKG_VERSION"),
|
env!("CARGO_PKG_VERSION"),
|
||||||
lint.name_lower()
|
lint.name_lower().replacen("clippy::", "", 1)
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -1115,4 +1115,4 @@ mod test {
|
||||||
let result = without_block_comments(vec!["foo", "bar", "baz"]);
|
let result = without_block_comments(vec!["foo", "bar", "baz"]);
|
||||||
assert_eq!(result, vec!["foo", "bar", "baz"]);
|
assert_eq!(result, vec!["foo", "bar", "baz"]);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue