Open
Description
When in this context:
enum Foo {
Bar,
Baz
}
impl Foo {
fn qux(&self) {
match self {
$0_ => { }
}
}
}
The fill match arm assist should prefer Self
over Foo
when inside of impl Foo { }
impl Foo {
fn qux(&self) {
match self {
Self::Bar => $0,
Self::Baz => $1
}
}
}
Arguably this could be a configuration option, as some code-bases may not prefer this style.