You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
structFoo{something:Option<u32>,bar:u32,}fnmain(){let a = Foo{something:Some(1),bar:2,};ifletFoo{something:Some(something), .. } = a {println!("{}", something);}}
rustfmt formats the if let as
ifletFoo{something:Some(something),
..
} = a
{println!("{}", something);}
which looks rather unfortunate...
Should probably keep the original form in this case?