In the example of the match expression (method 2), the last statement, statementN, is ended with a semicolon. However, if a statement end with a semicolon () is returned, not the value of the last statement.
So the variable result in method 2 will always be (),
I think it is better, and more clear, if the semicolon of the last statement of each block is removed.
Course: Learn Rust from Scratch - Free Interactive Course
Lesson: Match Expression - Learn Rust from Scratch