mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 15:15:24 +00:00
cargo clippy --fix
This commit is contained in:
parent
1ab8c7fd27
commit
fad4fa163c
178 changed files with 595 additions and 738 deletions
|
@ -304,9 +304,7 @@ fn params(
|
|||
func_kind: &FuncKind<'_>,
|
||||
has_dot_receiver: bool,
|
||||
) -> Option<(Option<hir::SelfParam>, Vec<hir::Param>)> {
|
||||
if ctx.config.callable.is_none() {
|
||||
return None;
|
||||
}
|
||||
ctx.config.callable.as_ref()?;
|
||||
|
||||
// Don't add parentheses if the expected type is a function reference with the same signature.
|
||||
if let Some(expected) = ctx.expected_type.as_ref().filter(|e| e.is_fn()) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue