compiler-cli
compiler-core
language-server
···
50
50
clippy::match_single_binding,
51
51
clippy::inconsistent_struct_constructor,
52
52
clippy::assign_op_pattern,
53
53
-
clippy::len_without_is_empty
53
53
+
clippy::len_without_is_empty,
54
54
+
clippy::let_unit_value
54
55
)]
55
56
56
57
#[cfg(test)]
···
3265
3265
pub fn record_definition(record_name: &str, fields: &[(&str, Arc<Type>)]) -> String {
3266
3266
let mut builder = ErlangSourceBuilder::new(None);
3267
3267
3268
3268
-
builder.start_record_attribute(&to_snake_case(record_name));
3268
3268
+
let attribute = builder.start_record_attribute(&to_snake_case(record_name));
3269
3269
3270
3270
let type_printer = TypeGenerator::new("").var_as_any();
3271
3271
for (field_name, field_type) in fields {
···
3274
3274
type_printer.type_(&mut builder, field_type);
3275
3275
}
3276
3276
3277
3277
-
builder.end_record_attribute(());
3277
3277
+
builder.end_record_attribute(attribute);
3278
3278
builder.into_output()
3279
3279
}
3280
3280
···
56
56
clippy::match_like_matches_macro,
57
57
clippy::inconsistent_struct_constructor,
58
58
clippy::len_without_is_empty,
59
59
+
clippy::let_unit_value,
59
60
// TODO: fix
60
61
clippy::arc_with_non_send_sync,
61
62
)]
···
52
52
clippy::match_single_binding,
53
53
clippy::match_like_matches_macro,
54
54
clippy::inconsistent_struct_constructor,
55
55
-
clippy::len_without_is_empty
55
55
+
clippy::len_without_is_empty,
56
56
+
clippy::let_unit_value
56
57
)]
57
58
58
59
mod code_action;