From 141ec8337244ce8a0d4c41b9e00d2e0ff444f4c7 Mon Sep 17 00:00:00 2001 From: Roey Darwish Dror Date: Wed, 7 Apr 2021 10:23:26 +0300 Subject: [PATCH] Clippy --- src/steps/powershell.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/steps/powershell.rs b/src/steps/powershell.rs index 3831bd0c..07f1fcd3 100644 --- a/src/steps/powershell.rs +++ b/src/steps/powershell.rs @@ -3,7 +3,7 @@ use crate::executor::CommandExt; use crate::terminal::{is_dumb, print_separator}; use crate::utils::{require_option, which, PathExt}; use anyhow::Result; -use std::path::PathBuf; +use std::path::{Path, PathBuf}; use std::process::Command; pub struct Powershell { @@ -45,7 +45,7 @@ impl Powershell { } #[cfg(windows)] - pub fn has_module(powershell: &PathBuf, command: &str) -> bool { + pub fn has_module(powershell: &Path, command: &str) -> bool { Command::new(&powershell) .args(&[ "-NoProfile",