From b8a975ae2f4abec9d15ba91ca168f39c0f3d3bf4 Mon Sep 17 00:00:00 2001 From: 魏曹先生 <1992414357@qq.com> Date: Sun, 19 Apr 2026 14:01:08 +0800 Subject: Remove redundant `.to_chain()` calls from editor command functions --- src/cli.rs | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src/cli.rs') diff --git a/src/cli.rs b/src/cli.rs index 5a16588..46faca6 100644 --- a/src/cli.rs +++ b/src/cli.rs @@ -225,7 +225,7 @@ fn parse_ls_cmd(prev: ListAllBillEntry) -> NextProcess { .pick::(["-O", "--optimize"]) .unpack_directly() .0; - StateListBills { optimize }.into() + StateListBills { optimize } } #[chain] @@ -377,27 +377,27 @@ dispatcher!("nano", EditWithNanoCommand => EditWithNanoEntry); #[chain] fn edit_with_vi(_prev: EditWithViEntry) -> NextProcess { - EditEntry::new(string_vec!["-e", "vi"]).to_chain() + EditEntry::new(string_vec!["-e", "vi"]) } #[chain] fn edit_with_vim(_prev: EditWithVimEntry) -> NextProcess { - EditEntry::new(string_vec!["-e", "vim"]).to_chain() + EditEntry::new(string_vec!["-e", "vim"]) } #[chain] fn edit_with_nvim(_prev: EditWithNvimEntry) -> NextProcess { - EditEntry::new(string_vec!["-e", "nvim"]).to_chain() + EditEntry::new(string_vec!["-e", "nvim"]) } #[chain] fn edit_with_helix(_prev: EditWithHelixEntry) -> NextProcess { - EditEntry::new(string_vec!["-e", "helix"]).to_chain() + EditEntry::new(string_vec!["-e", "helix"]) } #[chain] fn edit_with_nano(_prev: EditWithNanoEntry) -> NextProcess { - EditEntry::new(string_vec!["-e", "nano"]).to_chain() + EditEntry::new(string_vec!["-e", "nano"]) } #[renderer] -- cgit