Resolves clippy errors, please review!!! (#60)

This commit is contained in:
Thomas Schönauer
2022-10-23 11:34:30 +00:00
committed by GitHub
parent 6000124062
commit 347372ca71
19 changed files with 147 additions and 140 deletions

View File

@@ -45,12 +45,12 @@ fn upgrade(vim: &Path, vimrc: &Path, ctx: &ExecutionContext) -> Result<()> {
tempfile.write_all(UPGRADE_VIM.replace('\r', "").as_bytes())?;
debug!("Wrote vim script to {:?}", tempfile.path());
let mut command = ctx.run_type().execute(&vim);
let mut command = ctx.run_type().execute(vim);
command
.args(&["-u"])
.args(["-u"])
.arg(vimrc)
.args(&["-U", "NONE", "-V1", "-nNesS"])
.args(["-U", "NONE", "-V1", "-nNesS"])
.arg(tempfile.path());
if ctx.config().force_vim_plug_update() {
@@ -88,17 +88,17 @@ pub fn upgrade_ultimate_vimrc(ctx: &ExecutionContext) -> Result<()> {
ctx.run_type()
.execute(&git)
.current_dir(&config_dir)
.args(&["reset", "--hard"])
.args(["reset", "--hard"])
.check_run()?;
ctx.run_type()
.execute(&git)
.current_dir(&config_dir)
.args(&["clean", "-d", "--force"])
.args(["clean", "-d", "--force"])
.check_run()?;
ctx.run_type()
.execute(&git)
.current_dir(&config_dir)
.args(&["pull", "--rebase"])
.args(["pull", "--rebase"])
.check_run()?;
ctx.run_type()
.execute(python)