mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-08-30 15:17:31 +00:00
Inline parameters in inline_call
if possible
This commit is contained in:
parent
14e18bfa38
commit
d308f17a21
3 changed files with 111 additions and 56 deletions
|
@ -641,6 +641,15 @@ impl ast::SlicePat {
|
|||
}
|
||||
}
|
||||
|
||||
impl ast::IdentPat {
|
||||
pub fn is_simple_ident(&self) -> bool {
|
||||
self.at_token().is_none()
|
||||
&& self.mut_token().is_none()
|
||||
&& self.ref_token().is_none()
|
||||
&& self.pat().is_none()
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Copy, Clone, Debug, PartialEq, Eq, Hash)]
|
||||
pub enum SelfParamKind {
|
||||
/// self
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue