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

@@ -43,7 +43,7 @@ impl NPM {
fn version(&self) -> Result<Version> {
let version_str = Command::new(&self.command)
.args(&["--version"])
.args(["--version"])
.check_output()
.map(|s| s.trim().to_owned());
Version::parse(&version_str?).map_err(|err| err.into())