superlint/test/linters/rust_2021/rust_bad_1.rs
Marco Ferrari e6cf8d3845
Move tests to the test directory (#4985)
* Move tests to the test directory

* Fix linting errors

* Add states back

* Add xml back
2023-12-15 08:50:35 +00:00

7 lines
315 B
Rust

// 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)), });
}