SergioB-dev / rust-regex-pro

CLI Regex Trainer - A collaborative rust project for regex enthusiasts
0 stars 2 forks source link

Using cargo fmt to fix code formatting and refactoring some matches in order to avoid using mut when not needed #4

Closed gabucito closed 2 years ago

gabucito commented 2 years ago

I ran cargo fmt on the lib.rs to fix the code formatting. Refactored 'beginning_message' and 'chosen_level' by assigning their values using match. This is to avoid getting the unused_assignments when using mut.