The code has been refactored to improve its structure and indentation, making it more readable. Additionally, a match operator with handling of all possible cases has been used instead of multiple nested if conditions. This simplifies reading the code and increases its readability.
The code has been refactored to improve its structure and indentation, making it more readable. Additionally, a match operator with handling of all possible cases has been used instead of multiple nested if conditions. This simplifies reading the code and increases its readability.