File tree Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Expand file tree Collapse file tree 1 file changed +5
-7
lines changed Original file line number Diff line number Diff line change @@ -289,16 +289,14 @@ fn validate_variable<T: AnnotationMap>(
289
289
} ;
290
290
291
291
let Some ( rhs_ty) = context. annotations . get_type ( node, context. index ) else {
292
- let type_name = init
293
- . target_type_name
294
- . as_ref ( )
295
- . map ( Clone :: clone)
296
- . unwrap_or_default ( ) ;
297
- validator. push_diagnostic ( Diagnostic :: unknown_type ( & type_name, node. get_location ( ) ) ) ;
292
+ let type_name = init. target_type_name . clone ( ) . unwrap_or_default ( ) ;
293
+ validator
294
+ . push_diagnostic ( Diagnostic :: unknown_type ( & type_name, node. get_location ( ) ) ) ;
298
295
return ;
299
296
} ;
300
297
301
- if context. index . find_elementary_pointer_type ( rhs_ty. get_type_information ( ) ) . is_void ( ) {
298
+ if context. index . find_elementary_pointer_type ( rhs_ty. get_type_information ( ) ) . is_void ( )
299
+ {
302
300
// we could not find the type in the index, this will be caught elsewhere.
303
301
return ;
304
302
} ;
You can’t perform that action at this time.
0 commit comments