Fix unnecessary braces warnings
This commit is contained in:
@@ -399,17 +399,17 @@ pub(crate) fn docs_from_symbol(db: &RootDatabase, symbol: &FileSymbol) -> Option
|
||||
|
||||
match_ast! {
|
||||
match node {
|
||||
ast::FnDef(it) => { it.doc_comment_text() },
|
||||
ast::StructDef(it) => { it.doc_comment_text() },
|
||||
ast::EnumDef(it) => { it.doc_comment_text() },
|
||||
ast::TraitDef(it) => { it.doc_comment_text() },
|
||||
ast::Module(it) => { it.doc_comment_text() },
|
||||
ast::TypeAliasDef(it) => { it.doc_comment_text() },
|
||||
ast::ConstDef(it) => { it.doc_comment_text() },
|
||||
ast::StaticDef(it) => { it.doc_comment_text() },
|
||||
ast::RecordFieldDef(it) => { it.doc_comment_text() },
|
||||
ast::EnumVariant(it) => { it.doc_comment_text() },
|
||||
ast::MacroCall(it) => { it.doc_comment_text() },
|
||||
ast::FnDef(it) => it.doc_comment_text(),
|
||||
ast::StructDef(it) => it.doc_comment_text(),
|
||||
ast::EnumDef(it) => it.doc_comment_text(),
|
||||
ast::TraitDef(it) => it.doc_comment_text(),
|
||||
ast::Module(it) => it.doc_comment_text(),
|
||||
ast::TypeAliasDef(it) => it.doc_comment_text(),
|
||||
ast::ConstDef(it) => it.doc_comment_text(),
|
||||
ast::StaticDef(it) => it.doc_comment_text(),
|
||||
ast::RecordFieldDef(it) => it.doc_comment_text(),
|
||||
ast::EnumVariant(it) => it.doc_comment_text(),
|
||||
ast::MacroCall(it) => it.doc_comment_text(),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
@@ -424,16 +424,16 @@ pub(crate) fn description_from_symbol(db: &RootDatabase, symbol: &FileSymbol) ->
|
||||
|
||||
match_ast! {
|
||||
match node {
|
||||
ast::FnDef(it) => { it.short_label() },
|
||||
ast::StructDef(it) => { it.short_label() },
|
||||
ast::EnumDef(it) => { it.short_label() },
|
||||
ast::TraitDef(it) => { it.short_label() },
|
||||
ast::Module(it) => { it.short_label() },
|
||||
ast::TypeAliasDef(it) => { it.short_label() },
|
||||
ast::ConstDef(it) => { it.short_label() },
|
||||
ast::StaticDef(it) => { it.short_label() },
|
||||
ast::RecordFieldDef(it) => { it.short_label() },
|
||||
ast::EnumVariant(it) => { it.short_label() },
|
||||
ast::FnDef(it) => it.short_label(),
|
||||
ast::StructDef(it) => it.short_label(),
|
||||
ast::EnumDef(it) => it.short_label(),
|
||||
ast::TraitDef(it) => it.short_label(),
|
||||
ast::Module(it) => it.short_label(),
|
||||
ast::TypeAliasDef(it) => it.short_label(),
|
||||
ast::ConstDef(it) => it.short_label(),
|
||||
ast::StaticDef(it) => it.short_label(),
|
||||
ast::RecordFieldDef(it) => it.short_label(),
|
||||
ast::EnumVariant(it) => it.short_label(),
|
||||
_ => None,
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user