Style Guide for Rust in Substrate - Wiki Parity Tech Documentation

// OK
fn foo(
	really_long_parameter_name_1: SomeLongTypeName,
	really_long_parameter_name_2: SomeLongTypeName,
	shrt_nm_1: u8,
	shrt_nm_2: u8,
) {
   ...
}

// NOT OK
fn foo(really_long_parameter_name_1: SomeLongTypeName, really_long_parameter_name_2: SomeLongTypeName,
	shrt_nm_1: u8, shrt_nm_2: u8) {
   ...
}

{
	// Complex line (not just a function call, also a let statement). Full
	// structure.
	let (a, b) = bar(
		really_long_parameter_name_1,
		really_long_parameter_name_2,
		shrt_nm_1,
		shrt_nm_2,
	);

	// Long, simple function call.
	waz(
		really_long_parameter_name_1, 
		really_long_parameter_name_2,
		shrt_nm_1, 
		shrt_nm_2,
	);

	// Short function call. Inline.
	baz(a, b);
}

// Single line comma-delimited items do not have a trailing , enum Meal { Breakfast, Lunch, Dinner };


- Avoid trailing `;`s where unneeded.
```rust
if condition {
	return 1    // <-- no ; here
}