Make clippy happy

This commit is contained in:
Roey Darwish Dror
2021-04-06 09:52:34 +03:00
parent 572e8ffdf4
commit 8d55076cd3
3 changed files with 4 additions and 3 deletions

View File

@@ -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<PathBuf> {
.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());