diff options
Diffstat (limited to 'crates/ra_hir')
-rw-r--r-- | crates/ra_hir/src/code_model.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/crates/ra_hir/src/code_model.rs b/crates/ra_hir/src/code_model.rs index 6cbcc3850..0f6953158 100644 --- a/crates/ra_hir/src/code_model.rs +++ b/crates/ra_hir/src/code_model.rs | |||
@@ -1553,7 +1553,7 @@ impl Callable { | |||
1553 | param_list.self_param() | 1553 | param_list.self_param() |
1554 | } | 1554 | } |
1555 | pub fn n_params(&self) -> usize { | 1555 | pub fn n_params(&self) -> usize { |
1556 | self.sig.params().len() | 1556 | self.sig.params().len() - if self.is_bound_method { 1 } else { 0 } |
1557 | } | 1557 | } |
1558 | pub fn params( | 1558 | pub fn params( |
1559 | &self, | 1559 | &self, |