aboutsummaryrefslogtreecommitdiff
path: root/src/cli.rs
diff options
context:
space:
mode:
author魏曹先生 <1992414357@qq.com>2026-04-19 14:01:08 +0800
committer魏曹先生 <1992414357@qq.com>2026-04-19 14:01:08 +0800
commitb8a975ae2f4abec9d15ba91ca168f39c0f3d3bf4 (patch)
tree5c9d50e9103a04ecda1915d9e73ea42453244d00 /src/cli.rs
parent2390e7cdf2db261f8c2f035858c86a1aab6c40de (diff)
Remove redundant `.to_chain()` calls from editor command functionsnext
Diffstat (limited to 'src/cli.rs')
-rw-r--r--src/cli.rs12
1 files changed, 6 insertions, 6 deletions
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::<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]