File tree Expand file tree Collapse file tree 1 file changed +5
-9
lines changed
crates/ide-completion/src Expand file tree Collapse file tree 1 file changed +5
-9
lines changed Original file line number Diff line number Diff line change @@ -169,19 +169,15 @@ pub(crate) enum TypeLocation {
169
169
170
170
impl TypeLocation {
171
171
pub ( crate ) fn complete_lifetimes ( & self ) -> bool {
172
- match self {
173
- TypeLocation :: GenericArg ( Some ( ( _, _, Some ( param) ) ) ) => {
174
- matches ! ( param, ast:: GenericParam :: LifetimeParam ( _) )
175
- }
176
- _ => false ,
177
- }
172
+ matches ! (
173
+ self ,
174
+ TypeLocation :: GenericArg ( Some ( ( _, _, Some ( ast:: GenericParam :: LifetimeParam ( _) ) ) ) )
175
+ )
178
176
}
179
177
180
178
pub ( crate ) fn complete_consts ( & self ) -> bool {
181
179
match self {
182
- TypeLocation :: GenericArg ( Some ( ( _, _, Some ( param) ) ) ) => {
183
- matches ! ( param, ast:: GenericParam :: ConstParam ( _) )
184
- }
180
+ TypeLocation :: GenericArg ( Some ( ( _, _, Some ( ast:: GenericParam :: ConstParam ( _) ) ) ) ) => true ,
185
181
TypeLocation :: AssocConstEq => true ,
186
182
_ => false ,
187
183
}
You can’t perform that action at this time.
0 commit comments