Const items have by default a static lifetime, there's no need to annotate it. (clippy::redundant_static_lifetimes)
This commit is contained in:
parent
edd3e175d6
commit
c2bbe3349f
8 changed files with 14 additions and 14 deletions
|
@ -3150,7 +3150,7 @@ fn render_attribute(attr: &ast::MetaItem) -> Option<String> {
|
|||
}
|
||||
}
|
||||
|
||||
const ATTRIBUTE_WHITELIST: &'static [Symbol] = &[
|
||||
const ATTRIBUTE_WHITELIST: &[Symbol] = &[
|
||||
sym::export_name,
|
||||
sym::lang,
|
||||
sym::link_section,
|
||||
|
@ -4610,7 +4610,7 @@ fn item_keyword(w: &mut Buffer, cx: &Context, it: &clean::Item) {
|
|||
document(w, cx, it)
|
||||
}
|
||||
|
||||
crate const BASIC_KEYWORDS: &'static str = "rust, rustlang, rust-lang";
|
||||
crate const BASIC_KEYWORDS: &str = "rust, rustlang, rust-lang";
|
||||
|
||||
fn make_item_keywords(it: &clean::Item) -> String {
|
||||
format!("{}, {}", BASIC_KEYWORDS, it.name.as_ref().unwrap())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue