From 247e585aa18c9e4aef065055aa6230e22087f7e2 Mon Sep 17 00:00:00 2001 From: Wolf Vollprecht Date: Wed, 11 Sep 2024 14:26:41 -0700 Subject: [PATCH] fix clippy --- crates/shell/src/main.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/crates/shell/src/main.rs b/crates/shell/src/main.rs index 1ebc71b..8d69523 100644 --- a/crates/shell/src/main.rs +++ b/crates/shell/src/main.rs @@ -67,7 +67,7 @@ async fn interactive(state: Option) -> anyhow::Result<()> { let helper = helper::ShellPromptHelper::default(); rl.set_helper(Some(helper)); - let mut state = state.unwrap_or_else(|| init_state()); + let mut state = state.unwrap_or_else(init_state); let home = dirs::home_dir().context("Couldn't get home directory")?;