Skip to content

Commit a13293b

Browse files
committed
fmt
1 parent bf2b90c commit a13293b

File tree

1 file changed

+5
-7
lines changed

1 file changed

+5
-7
lines changed

src/validation/variable.rs

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -289,16 +289,14 @@ fn validate_variable<T: AnnotationMap>(
289289
};
290290

291291
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()));
298295
return;
299296
};
300297

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+
{
302300
// we could not find the type in the index, this will be caught elsewhere.
303301
return;
304302
};

0 commit comments

Comments
 (0)