lint/test/linters/rust_2021/rust_good_1.rs

9 lines
266 B
Rust
Raw Permalink Normal View History

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