diff --git a/src/steps/git.rs b/src/steps/git.rs index ab2f5c6e..f8974f7a 100644 --- a/src/steps/git.rs +++ b/src/steps/git.rs @@ -42,7 +42,7 @@ fn check_output(output: Output) -> Result<()> { } } -async fn pull_repository(repo: String, git: &PathBuf, ctx: &ExecutionContext<'_>) -> Result<()> { +async fn pull_repository(repo: String, git: &Path, ctx: &ExecutionContext<'_>) -> Result<()> { let path = repo.to_string(); let before_revision = get_head_revision(git, &repo); diff --git a/src/steps/node.rs b/src/steps/node.rs index d59808e4..f3b3612b 100644 --- a/src/steps/node.rs +++ b/src/steps/node.rs @@ -14,6 +14,7 @@ use std::os::unix::prelude::MetadataExt; use std::path::PathBuf; use std::process::Command; +#[allow(clippy::upper_case_acronyms)] struct NPM { command: PathBuf, } diff --git a/src/steps/vim.rs b/src/steps/vim.rs index 29d5ccb2..e88b4508 100644 --- a/src/steps/vim.rs +++ b/src/steps/vim.rs @@ -9,7 +9,7 @@ use crate::{ }; use directories::BaseDirs; use log::debug; -use std::path::PathBuf; +use std::path::{Path, PathBuf}; use std::{ io::{self, Write}, process::Command, @@ -40,7 +40,7 @@ fn nvimrc(base_dirs: &BaseDirs) -> Result { .or_else(|_| base_dir.join("nvim/init.lua").require()) } -fn upgrade(vim: &PathBuf, vimrc: &PathBuf, ctx: &ExecutionContext) -> Result<()> { +fn upgrade(vim: &Path, vimrc: &Path, ctx: &ExecutionContext) -> Result<()> { let mut tempfile = tempfile::NamedTempFile::new()?; tempfile.write_all(UPGRADE_VIM.replace('\r', "").as_bytes())?; debug!("Wrote vim script to {:?}", tempfile.path());