mirror of
https://github.com/roc-lang/roc.git
synced 2024-11-13 09:49:11 +03:00
Clippy
This commit is contained in:
parent
bde107da49
commit
b0c602eb8d
@ -2328,14 +2328,14 @@ where
|
||||
|
||||
WrappedVariant::NullableUnwrapped {
|
||||
nullable_id,
|
||||
nullable_name: nullable_name.into(),
|
||||
nullable_name,
|
||||
other_name,
|
||||
other_fields: other_arguments,
|
||||
}
|
||||
} else {
|
||||
WrappedVariant::NullableWrapped {
|
||||
nullable_id,
|
||||
nullable_name: nullable_name.into(),
|
||||
nullable_name,
|
||||
sorted_tag_layouts: answer,
|
||||
}
|
||||
}
|
||||
@ -2510,8 +2510,8 @@ where
|
||||
// type can be stored in a boolean
|
||||
|
||||
// tags_vec is sorted, and answer is sorted the same way
|
||||
let ttrue = answer.remove(1).0.into();
|
||||
let ffalse = answer.remove(0).0.into();
|
||||
let ttrue = answer.remove(1).0;
|
||||
let ffalse = answer.remove(0).0;
|
||||
|
||||
UnionVariant::BoolUnion { ffalse, ttrue }
|
||||
}
|
||||
@ -2521,7 +2521,7 @@ where
|
||||
let mut tag_names = Vec::with_capacity_in(answer.len(), arena);
|
||||
|
||||
for (tag_name, _) in answer {
|
||||
tag_names.push(tag_name.into());
|
||||
tag_names.push(tag_name);
|
||||
}
|
||||
|
||||
UnionVariant::ByteUnion(tag_names)
|
||||
@ -2535,7 +2535,7 @@ where
|
||||
WrappedVariant::NullableUnwrapped {
|
||||
nullable_id,
|
||||
nullable_name: nullable_name.into(),
|
||||
other_name: other_name.into(),
|
||||
other_name,
|
||||
other_fields: other_arguments,
|
||||
}
|
||||
} else {
|
||||
|
@ -2524,7 +2524,7 @@ fn create_union_lambda<'a>(
|
||||
|
||||
let lambda_name_slice = SubsSlice::extend_new(&mut subs.closure_names, [closure]);
|
||||
|
||||
return UnionLambdas::from_slices(lambda_name_slice, new_variable_slices);
|
||||
UnionLambdas::from_slices(lambda_name_slice, new_variable_slices)
|
||||
}
|
||||
|
||||
fn check_for_infinite_type(
|
||||
|
Loading…
Reference in New Issue
Block a user