diff options
| author | 魏曹先生 <1992414357@qq.com> | 2026-04-19 14:01:08 +0800 |
|---|---|---|
| committer | 魏曹先生 <1992414357@qq.com> | 2026-04-19 14:01:08 +0800 |
| commit | b8a975ae2f4abec9d15ba91ca168f39c0f3d3bf4 (patch) | |
| tree | 5c9d50e9103a04ecda1915d9e73ea42453244d00 /src | |
| parent | 2390e7cdf2db261f8c2f035858c86a1aab6c40de (diff) | |
Remove redundant `.to_chain()` calls from editor command functionsnext
Diffstat (limited to 'src')
| -rw-r--r-- | src/cli.rs | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -225,7 +225,7 @@ fn parse_ls_cmd(prev: ListAllBillEntry) -> NextProcess { .pick::<bool>(["-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] |
