X-Debbugs-CC: dgutov@yandex.ru
Examples:
match &cli.command {
Commands::Run {
a,
b,
c,
d,
} => todo!(),
}
Commands should be highlighted as a type.
Likewise for:
match msg {
Message::Quit => {
println!("The Quit variant has no data to destructure.");
}
Message::Move { x, y } => {
println!("Move in the x direction {x} and in the y
direction {y}");
}
Message::Write(text) => {
println!("Text message: {text}");
}
Message::ChangeColor(r, g, b) => {
println!("Change the color to red {r}, green {g}, and blue
{b}",)
}
}
Message::Move should have Message highlighted as a type.
Attached is a patch fixing it.