mirror of
https://github.com/super-linter/super-linter.git
synced 2024-11-28 19:50:59 -05:00
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:
parent
f90bf96db8
commit
071bfadcf0
3 changed files with 16 additions and 0 deletions
7
.automation/test/rust_2021/rust_bad_1.rs
Normal file
7
.automation/test/rust_2021/rust_bad_1.rs
Normal 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)), });
|
||||
}
|
8
.automation/test/rust_2021/rust_good_1.rs
Normal file
8
.automation/test/rust_2021/rust_good_1.rs
Normal 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)),
|
||||
});
|
||||
}
|
|
@ -677,6 +677,7 @@ function BuildFileList() {
|
|||
################################
|
||||
FILE_ARRAY_RUST_2015+=("${FILE}")
|
||||
FILE_ARRAY_RUST_2018+=("${FILE}")
|
||||
FILE_ARRAY_RUST_2021+=("${FILE}")
|
||||
|
||||
#######################
|
||||
# Get the RUST crates #
|
||||
|
|
Loading…
Reference in a new issue