Add RUST_2021 test and fix RUST_2021 file list (#2215)

* Add RUST_2021 test

* Add files to ARRAY_RUST_2021
This commit is contained in:
Marco Ferrari 2021-12-07 22:55:54 +01:00 committed by GitHub
parent f90bf96db8
commit 071bfadcf0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 0 deletions

View file

@ -0,0 +1,7 @@
// rustfmt-struct_field_align_threshold: 50
fn func() {
Ok(ServerInformation { name: unwrap_message_string(items.get(0)),
vendor: unwrap_message_string(items.get(1)),
version: unwrap_message_string(items.get(2)),
spec_version: unwrap_message_string(items.get(3)), });
}

View file

@ -0,0 +1,8 @@
fn func() {
Ok(ServerInformation {
name: unwrap_message_string(items.get(0)),
vendor: unwrap_message_string(items.get(1)),
version: unwrap_message_string(items.get(2)),
spec_version: unwrap_message_string(items.get(3)),
});
}

View file

@ -677,6 +677,7 @@ function BuildFileList() {
################################ ################################
FILE_ARRAY_RUST_2015+=("${FILE}") FILE_ARRAY_RUST_2015+=("${FILE}")
FILE_ARRAY_RUST_2018+=("${FILE}") FILE_ARRAY_RUST_2018+=("${FILE}")
FILE_ARRAY_RUST_2021+=("${FILE}")
####################### #######################
# Get the RUST crates # # Get the RUST crates #