I have a match block on enum, and one of it`s match cases contains another match block on the same enum. Something like this:
fn foo(&mut self, scenario: &mut Scenario) -> Result<&mut Self>
{
match self {
Scenario::Step { attributes, .. } => {
match scenario {
Scenario::Step { attributes,.. } => {
Is there any way to access both attributes field inside of the inner match? I see possibility to just return that field from the inner match block, but can it be handled in more beauty way?