diff options
| author | Miquel Sabaté Solà <mssola@mssola.com> | 2026-01-13 21:51:00 +0100 |
|---|---|---|
| committer | Miquel Sabaté Solà <mssola@mssola.com> | 2026-01-13 21:51:00 +0100 |
| commit | 84bc13b4dd181d14a100d2d8a3716525c79cd25e (patch) | |
| tree | 4386fda27048133cc433165a4e83fd0532732a63 /crates/cli/src/run.rs | |
| parent | 3f11980b29cda6340c809aff0c0f1c34e9c3ce26 (diff) | |
| download | mihi-84bc13b4dd181d14a100d2d8a3716525c79cd25e.tar.gz mihi-84bc13b4dd181d14a100d2d8a3716525c79cd25e.zip | |
Fix style issues coming from recent merge
I apparently merged the 'inflection' branch without checking the code
style. This means that a lot of warnings are being raised by clippy and
I'm unsure which commit did what. Since I'm lazy about this right now,
let's bring all fixes in a single commit.
Signed-off-by: Miquel Sabaté Solà <mssola@mssola.com>
Diffstat (limited to 'crates/cli/src/run.rs')
| -rw-r--r-- | crates/cli/src/run.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/crates/cli/src/run.rs b/crates/cli/src/run.rs index 10e0721..5d121d2 100644 --- a/crates/cli/src/run.rs +++ b/crates/cli/src/run.rs @@ -13,8 +13,8 @@ use crate::locale::{current_locale, Locale}; const MAX_STEPS: usize = 5; fn help(msg: Option<&str>) { - if msg.is_some() { - println!("{}.\n", msg.unwrap()); + if let Some(msg) = msg { + println!("{}.\n", msg); } println!("mihi run: Run exercises. Default command if none was given.\n"); |
