Checks for struct patterns whose fields whose fields do not match their declared order.
It can be harder to spot mistakes in inconsistent code.
struct Struct {
a: bool,
b: bool,
};
let strukt = Struct { a: false, b: true };
let Struct { b, a } = strukt;
Use instead:
struct Struct {
a: bool,
b: bool,
};
let strukt = Struct { a: false, b: true };
let Struct { a, b } = strukt;