mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-09-28 12:54:58 +00:00
More manual clippy fixes
This commit is contained in:
parent
b8ddcb0652
commit
eceaf94f19
32 changed files with 141 additions and 159 deletions
|
@ -54,9 +54,8 @@ impl FunctionSignature {
|
|||
|
||||
pub(crate) fn from_struct(db: &RootDatabase, st: hir::Struct) -> Option<Self> {
|
||||
let node: ast::StructDef = st.source(db).value;
|
||||
match node.kind() {
|
||||
ast::StructKind::Record(_) => return None,
|
||||
_ => (),
|
||||
if let ast::StructKind::Record(_) = node.kind() {
|
||||
return None;
|
||||
};
|
||||
|
||||
let params = st
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue